@layer reset, base, theme, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
  }

  h1,
  h2,
  p,
  ul {
    margin: 0;
  }

  ul {
    padding: 0;
    list-style: none;
  }

  img,
  svg {
    display: block;
    max-inline-size: 100%;
  }

  button,
  input,
  select {
    font: inherit;
    color: inherit;
  }
}

@layer theme {
  :root {
    color-scheme: light;

    /* Fondo blanco/alabastro limpio estilo Apple */
    --bg-canvas: #f5f5f7;
    --bg-canvas-elevated: #fbfbfd;
    --bg-header-glass: rgb(251 251 253 / 0.78);

    --ink-primary: #1d1d1f;
    --ink-secondary: #6e6e73;
    --ink-on-dark: #f5f5f7;
    --ink-on-dark-muted: #a1a1a6;

    --line-subtle: rgb(0 0 0 / 0.08);
    --line-card: rgb(255 255 255 / 0.14);

    /* Acento neón morado exclusivo para detalles y sombras destacadas */
    --purple-neon-core: #9333ea;
    --purple-neon-glow: #a855f7;
    --purple-neon-light: #d8b4fe;
    --purple-neon-soft: rgb(147 51 234 / 0.44);
    --purple-neon-ambient: rgb(168 85 247 / 0.25);

    /* Curvas físicas estilo Apple / macOS */
    --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
    --spring-apple: linear(
      0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 17.6%,
      1.017 20.6%, 1.077 24.4%, 1.097 27.6%, 1.093 30.8%,
      1.031 40.5%, 1.003 47.6%, 0.991 56%, 0.997 70%, 1
    );
    --spring-tactile: linear(
      0, 0.025, 0.1 2.2%, 0.42 5.8%, 0.93 13%, 1.08 18%,
      1.11 21.5%, 1.06 27.5%, 0.99 37%, 0.985 45%, 1.002 64%, 1
    );

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", "Inter", sans-serif;

    --radius-bento: clamp(1.35rem, 2.4vw, 1.85rem);
    --radius-pill: 9999px;
    --header-height: 4.25rem;
  }
}

@layer base {
  body {
    position: relative;
    min-block-size: 100dvh;
    font-family: var(--font-sans);
    color: var(--ink-primary);
    background-color: var(--bg-canvas);
    background-image:
      radial-gradient(1200px 620px at 50% -10%, #ffffff 0%, transparent 72%),
      radial-gradient(840px 520px at 10% 80%, rgb(147 51 234 / 0.035), transparent 65%),
      radial-gradient(840px 520px at 90% 85%, rgb(0 0 0 / 0.035), transparent 65%);
    line-height: 1.47059;
    letter-spacing: -0.014em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }

  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--ink-primary);
    outline-offset: 3px;
  }
}

@layer components {
  /* =========================================================
     UTILIDADES DE RECORTE VERTICAL PARA PNGs (SIN CORTAR ANCHO)
     ========================================================= */
  .logo-frame,
  .wordmark-frame {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
  }

  .logo-img,
  .wordmark-img {
    inline-size: 100%;
    block-size: auto;
  }

  .logo-img {
    margin-block-start: -15%;
    margin-block-end: -24%;
  }

  .wordmark-img--black {
    margin-block: -42.5%;
  }

  .wordmark-img--white {
    margin-block-start: -44%;
    margin-block-end: -42%;
  }

  /* =========================================================
     0. FONDO ANIMADO CON LÍNEAS CURVAS NEÓN
     ========================================================= */
  .bg-neon-curves {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .neon-waves-svg {
    inline-size: 112%;
    block-size: 112%;
    margin-inline-start: -6%;
    margin-block-start: -6%;
    opacity: 0.85;
  }

  .curve-neon-base,
  .curve-neon-pulse {
    filter: drop-shadow(0 0 8px rgb(147 51 234 / 0.35));
  }

  .curve-neon-pulse {
    stroke-dasharray: 240 1460;
    stroke-dashoffset: 0;
    opacity: 0.7;
  }

  @media (prefers-reduced-motion: no-preference) {
    .curve-float-a {
      animation: curve-drift-a 18s var(--ease-apple) infinite alternate;
      transform-origin: center;
    }

    .curve-float-b {
      animation: curve-drift-b 22s var(--ease-apple) infinite alternate;
      transform-origin: center;
    }

    .curve-pulse-1 {
      animation: neon-flow-forward 11s linear infinite;
    }

    .curve-pulse-2 {
      animation: neon-flow-reverse 15s linear infinite;
    }

    .curve-pulse-3 {
      animation: neon-flow-forward 18s linear infinite;
    }

    @keyframes curve-drift-a {
      from { transform: translate3d(-12px, -8px, 0); }
      to { transform: translate3d(14px, 10px, 0); }
    }

    @keyframes curve-drift-b {
      from { transform: translate3d(12px, 8px, 0); }
      to { transform: translate3d(-14px, -10px, 0); }
    }

    @keyframes neon-flow-forward {
      from { stroke-dashoffset: 1700; }
      to { stroke-dashoffset: 0; }
    }

    @keyframes neon-flow-reverse {
      from { stroke-dashoffset: 0; }
      to { stroke-dashoffset: 1700; }
    }
  }

  /* =========================================================
     1. ZONA SUPERIOR (HEADER TRANSLÚCIDO ESTILO APPLE)
     ========================================================= */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    block-size: var(--header-height);
    color: var(--ink-primary);
    background: var(--bg-header-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-block-end: 1px solid var(--line-subtle);
    transition: background-color 240ms var(--ease-apple), box-shadow 240ms var(--ease-apple);
  }

  .site-header.is-scrolled {
    background: rgb(251 251 253 / 0.92);
    box-shadow: 0 8px 28px -14px rgb(0 0 0 / 0.12);
  }

  .site-header-inner {
    inline-size: min(1320px, 100%);
    block-size: 100%;
    margin-inline: auto;
    padding-inline: clamp(0.85rem, 3vw, 2.25rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
  }

  .header-left {
    justify-self: start;
    display: flex;
    align-items: center;
  }

  .header-center {
    justify-self: center;
    display: flex;
    align-items: center;
  }

  .header-right {
    justify-self: end;
    display: flex;
    align-items: center;
  }

  .header-logo-link,
  .header-wordmark-link {
    display: inline-flex;
    align-items: center;
    border-radius: 0.75rem;
    padding: 0.25rem;
    transition: transform 350ms var(--ease-apple);
    transition: transform 480ms var(--spring-apple);
  }

  .header-logo-link:hover,
  .header-wordmark-link:hover {
    transform: scale(1.03);
  }

  .header-logo-link:active,
  .header-wordmark-link:active {
    transform: scale(0.97);
  }

  .header-logo-frame {
    inline-size: clamp(2.25rem, 3.6vw, 3.05rem);
  }

  .header-wordmark-frame {
    inline-size: clamp(5.8rem, 14vw, 9rem);
  }

  .menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-block: 0.48rem;
    padding-inline: 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(0 0 0 / 0.12);
    background: rgb(255 255 255 / 0.92);
    color: var(--ink-primary);
    cursor: pointer;
    box-shadow:
      0 2px 8px -2px rgb(0 0 0 / 0.08),
      0 0 0 0 rgb(147 51 234 / 0);
    transition:
      transform 220ms ease-out,
      box-shadow 260ms var(--ease-apple),
      border-color 260ms var(--ease-apple);
    transition:
      transform 520ms var(--spring-tactile),
      box-shadow 300ms var(--ease-apple),
      border-color 260ms var(--ease-apple);
  }

  .menu-trigger:hover {
    background: #ffffff;
    border-color: rgb(147 51 234 / 0.45);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
      0 8px 20px -6px rgb(0 0 0 / 0.12),
      0 0 18px -2px rgb(147 51 234 / 0.34);
  }

  .menu-trigger:active {
    transform: scale(0.96);
  }

  .menu-trigger-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .menu-trigger-icon {
    display: grid;
    gap: 4px;
    inline-size: 1.05rem;
  }

  .menu-line {
    display: block;
    block-size: 1.6px;
    inline-size: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform 320ms var(--ease-apple), inline-size 320ms var(--ease-apple);
  }

  .menu-line:nth-child(2) {
    inline-size: 72%;
    justify-self: end;
  }

  .menu-trigger:hover .menu-line:nth-child(2) {
    inline-size: 100%;
  }

  /* =========================================================
     2. MENÚ LATERAL (NAVIGATION DRAWER DERECHO CON SCROLL-SNAP)
     ========================================================= */
  .Drawer {
    --drawer-width: min(23.5rem, 84dvw, 100dvw - 24px);
    --drawer-backdrop: 0;

    inset: 0;
    inline-size: auto;
    block-size: auto;
    max-inline-size: none;
    max-block-size: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .Drawer::backdrop {
    background: rgb(6 6 10 / 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: var(--drawer-backdrop);
  }

  .Drawer-scroller {
    position: relative;
    display: grid;
    grid-template-columns: 100% var(--drawer-width);
    overflow-x: scroll;
    overscroll-behavior: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .Drawer-scroller::-webkit-scrollbar {
    display: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .Drawer-scroller {
      scroll-behavior: smooth;
    }
  }

  .Drawer-scroller::before {
    content: "";
    scroll-snap-align: start;
    scroll-initial-target: nearest;
  }

  .Drawer-sheet {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 1.25rem;
    block-size: 100svh;
    padding-block: 1.5rem;
    padding-inline: 1.35rem;
    background: linear-gradient(180deg, #0b0b0f 0%, #14141b 100%);
    color: var(--ink-on-dark);
    border-inline-start: 1px solid rgb(255 255 255 / 0.14);
    box-shadow: -24px 0 60px rgb(0 0 0 / 0.45);
    overflow-y: auto;
    scroll-snap-align: end;
    scrollbar-width: none;
  }

  .Drawer-sheet::-webkit-scrollbar {
    display: none;
  }

  @supports (animation-timeline: scroll()) {
    .Drawer {
      timeline-scope: --drawer-fade;
      animation: fade-drawer-backdrop linear both;
      animation-timeline: --drawer-fade;
    }

    .Drawer-scroller {
      scroll-timeline: --drawer-fade x;
    }

    @property --drawer-backdrop {
      syntax: "<number>";
      inherits: true;
      initial-value: 0;
    }

    @keyframes fade-drawer-backdrop {
      0% { --drawer-backdrop: 0; }
      100% { --drawer-backdrop: 1; }
    }
  }

  .Drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block-end: 0.9rem;
    border-block-end: 1px solid rgb(255 255 255 / 0.1);
  }

  .Drawer-wordmark-frame {
    inline-size: 7.25rem;
  }

  .Drawer-close {
    display: inline-grid;
    place-items: center;
    inline-size: 2.35rem;
    block-size: 2.35rem;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0.16);
    background: rgb(255 255 255 / 0.06);
    color: var(--ink-on-dark);
    cursor: pointer;
    transition: transform 240ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
    transition: transform 420ms var(--spring-tactile), background-color 200ms ease-out, border-color 200ms ease-out;
  }

  .Drawer-close:hover {
    background: rgb(255 255 255 / 0.14);
    border-color: rgb(168 85 247 / 0.55);
    transform: scale(1.06);
  }

  .Drawer-close:active {
    transform: scale(0.94);
  }

  .Drawer-close:focus-visible,
  .Drawer-nav a:focus-visible,
  .Drawer-whatsapp-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  .Drawer-tagline {
    font-size: 0.85rem;
    color: var(--ink-on-dark-muted);
    line-height: 1.45;
  }

  .Drawer-nav {
    display: grid;
    align-content: start;
    gap: 0.45rem;
  }

  .Drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.8rem;
    padding-inline: 0.95rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--ink-on-dark);
    font-weight: 500;
    font-size: 0.92rem;
    border: 1px solid transparent;
    background: rgb(255 255 255 / 0.04);
    transition:
      background-color 200ms ease-out,
      border-color 200ms ease-out,
      transform 320ms var(--ease-apple);
  }

  .Drawer-nav a:hover {
    background: rgb(255 255 255 / 0.09);
    border-color: rgb(168 85 247 / 0.35);
    transform: translateX(-3px);
  }

  .Drawer-nav a[aria-current="page"] {
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.28);
    font-weight: 600;
  }

  .Drawer-nav-meta {
    font-size: 0.7rem;
    color: var(--ink-on-dark-muted);
    padding-block: 0.2rem;
    padding-inline: 0.5rem;
    border-radius: var(--radius-pill);
    background: rgb(255 255 255 / 0.07);
    white-space: nowrap;
  }

  .Drawer-footer {
    display: grid;
    gap: 0.85rem;
    padding-block-start: 0.9rem;
    border-block-start: 1px solid rgb(255 255 255 / 0.1);
  }

  .Drawer-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
    padding-inline: 1rem;
    border-radius: 0.9rem;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgb(255 255 255 / 0.08);
  }

  .Drawer-contact-label {
    font-size: 0.78rem;
    color: var(--ink-on-dark-muted);
  }

  .Drawer-contact-number {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
  }

  .Drawer-whatsapp-btn {
    inline-size: 100%;
    justify-content: center;
    text-decoration: none;
  }

  /* =========================================================
     3. CONTENIDO PRINCIPAL: HERO LIMPIO ESTILO APPLE + 3 PILARES
     ========================================================= */
  .page-main {
    position: relative;
    z-index: 1;
    inline-size: min(1320px, 94vw);
    margin-inline: auto;
    padding-block: clamp(1.5rem, 3.8vw, 3rem) clamp(2rem, 4.5vw, 3.5rem);
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
  }

  .hero-section {
    display: grid;
    gap: clamp(1.35rem, 2.8vw, 2.25rem);
  }

  /* Logo grande + texto directo sobre el fondo blanco Apple (sin caja) */
  .hero-brand-bar {
    justify-self: center;
    inline-size: min(960px, 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 2.5vw, 2rem);
    padding-block: 0.25rem;
  }

  .hero-wordmark-wrap {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-wordmark-frame {
    inline-size: clamp(13rem, 33vw, 24rem);
  }

  .hero-brand-divider {
    inline-size: 1px;
    block-size: 2.25rem;
    background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.22), transparent);
  }

  .hero-brand-subtitle {
    flex: 1 1 16rem;
    max-inline-size: 24rem;
    font-size: clamp(0.96rem, 0.88rem + 0.35vw, 1.12rem);
    font-weight: 500;
    color: var(--ink-secondary);
    letter-spacing: -0.014em;
    line-height: 1.4;
    text-wrap: balance;
  }

  /* Layout con laterales minimalistas Apple (solo 3 puntos clave) */
  .hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 1.8vw, 1.35rem);
    align-items: center;
  }

  @media (min-width: 1024px) {
    .hero-layout {
      grid-template-columns: minmax(11.5rem, 1fr) minmax(0, 2.6fr) minmax(11.5rem, 1fr);
      grid-template-areas: "left hero right";
    }

    .service-card--hero {
      grid-area: hero;
    }

    .side-panel--left {
      grid-area: left;
    }

    .side-panel--right {
      grid-area: right;
    }
  }

  .side-panel {
    display: grid;
    gap: 0.85rem;
    align-content: center;
  }

  @media (max-width: 1023px) {
    .side-panel {
      grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    }
  }

  .apple-pillar-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.95rem;
    padding-inline: 1.1rem;
    border-radius: 1.15rem;
    background: rgb(255 255 255 / 0.84);
    border: 1px solid rgb(0 0 0 / 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px -10px rgb(0 0 0 / 0.08);
    transition: transform 360ms var(--ease-apple), box-shadow 360ms var(--ease-apple), border-color 240ms ease-out;
  }

  .apple-pillar-card:hover {
    transform: translateY(-2px);
    border-color: rgb(147 51 234 / 0.3);
    box-shadow:
      0 14px 30px -12px rgb(0 0 0 / 0.12),
      0 0 18px -6px rgb(147 51 234 / 0.22);
  }

  .apple-pillar-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    inline-size: 2.2rem;
    block-size: 2.2rem;
    border-radius: 0.7rem;
    background: #f5f5f7;
    color: var(--ink-primary);
    border: 1px solid rgb(0 0 0 / 0.06);
  }

  .apple-pillar-label {
    font-family: var(--font-display);
    font-size: clamp(0.88rem, 0.84rem + 0.2vw, 0.98rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink-primary);
    line-height: 1.25;
  }

  /* =========================================================
     4. TARJETAS NEGRAS PRESIONABLES (ACABADOS HARDWARE APPLE)
     ========================================================= */
  .service-card {
    --pointer-x: 50%;
    --pointer-y: 50%;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --card-bg: linear-gradient(155deg, #070709 0%, #0d0d12 100%);
    --card-border-color: var(--line-card);
    --card-shadow:
      0 20px 48px -12px rgb(0 0 0 / 0.22),
      0 8px 20px -10px rgb(0 0 0 / 0.16),
      inset 0 1px 0 rgb(255 255 255 / 0.16);
    --card-scale: 1;
    --card-lift: 0px;
    --cta-color: rgb(255 255 255 / 0.94);
    --cta-glow: drop-shadow(0 0 10px rgb(168 85 247 / 0.65));
    --arrow-shift: 0px;

    position: relative;
    container-type: inline-size;
    inline-size: 100%;
    border-radius: var(--radius-bento);
    background:
      radial-gradient(640px circle at var(--pointer-x) var(--pointer-y), rgb(255 255 255 / 0.08), transparent 55%),
      radial-gradient(900px 420px at 50% -15%, rgb(255 255 255 / 0.09), transparent 65%),
      var(--card-bg);
    color: var(--ink-on-dark);
    border: 1px solid var(--card-border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--card-lift)) scale(var(--card-scale));
    transition:
      transform 320ms ease-out,
      box-shadow 360ms var(--ease-apple),
      border-color 280ms ease-out;
    transition:
      transform 520ms var(--spring-apple),
      box-shadow 360ms var(--ease-apple),
      border-color 280ms ease-out;
  }

  /* 5 acabados distintos estilo hardware Apple */
  .card-tone-bloqueo {
    --card-bg: linear-gradient(155deg, #050507 0%, #0a0a0e 60%, #100e17 100%);
  }

  .card-tone-registros {
    --card-bg: linear-gradient(155deg, #100d18 0%, #181326 100%);
  }

  .card-tone-homologacion {
    --card-bg: linear-gradient(155deg, #0b1019 0%, #131c2b 100%);
  }

  .card-tone-desbloqueo {
    --card-bg: linear-gradient(155deg, #14151a 0%, #1e2027 100%);
  }

  .card-tone-no-registro {
    --card-bg: linear-gradient(155deg, #1b1b20 0%, #26262d 100%);
  }

  .service-card--sub {
    display: flex;
  }

  @supports (corner-shape: squircle) {
    .service-card {
      corner-shape: squircle;
    }
  }

  @media (hover: hover) {
    .service-card:has(.card-cta-trigger:hover) {
      --card-border-color: rgb(192 132 252 / 0.56);
      --card-shadow:
        0 30px 64px -16px rgb(0 0 0 / 0.34),
        0 0 36px -10px rgb(147 51 234 / 0.42),
        inset 0 1px 0 rgb(255 255 255 / 0.24);
      --card-lift: -4px;
      --cta-color: #ffffff;
      --cta-glow: drop-shadow(0 0 16px rgb(192 132 252 / 0.95));
      --arrow-shift: 5px;
    }
  }

  .service-card:has(.card-cta-trigger:active) {
    --card-scale: 0.984;
    --card-lift: 0px;
    --card-border-color: rgb(192 132 252 / 0.72);
    --card-shadow:
      0 14px 34px -14px rgb(0 0 0 / 0.28),
      0 0 28px -6px rgb(147 51 234 / 0.5),
      inset 0 1px 0 rgb(255 255 255 / 0.22);
  }

  .service-card:has(.card-cta-trigger:focus-visible) {
    outline: 3px solid var(--purple-neon-core);
    outline-offset: 4px;
    --card-border-color: rgb(192 132 252 / 0.72);
  }

  @supports not selector(:has(*)) {
    .service-card.is-hovered {
      --card-border-color: rgb(192 132 252 / 0.56);
      --card-shadow:
        0 30px 64px -16px rgb(0 0 0 / 0.34),
        0 0 36px -10px rgb(147 51 234 / 0.42),
        inset 0 1px 0 rgb(255 255 255 / 0.24);
      --card-lift: -4px;
      --cta-color: #ffffff;
      --cta-glow: drop-shadow(0 0 16px rgb(192 132 252 / 0.95));
      --arrow-shift: 5px;
    }

    .service-card.is-pressed {
      --card-scale: 0.984;
      --card-lift: 0px;
    }

    .service-card.is-focused {
      outline: 3px solid var(--purple-neon-core);
      outline-offset: 4px;
    }
  }

  .card-chrome-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      420px circle at var(--pointer-x) var(--pointer-y),
      rgb(168 85 247 / 0.14),
      transparent 65%
    );
    opacity: 0;
    transition: opacity 320ms ease-out;
  }

  .service-card:hover .card-chrome-glow {
    opacity: 1;
  }

  .card-liquid {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
  }

  .card-liquid--top {
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: clamp(8.5rem, 22vw, 15.5rem);
    block-size: auto;
  }

  .card-liquid--bottom {
    inset-block-end: 0;
    inset-inline-end: 0;
    inline-size: clamp(9.5rem, 24vw, 17rem);
    block-size: auto;
  }

  .service-card-inner {
    position: relative;
    z-index: 1;
    inline-size: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    text-align: center;
    gap: clamp(1.25rem, 3vw, 2.15rem);
    padding-block: clamp(1.85rem, 4vw, 3rem);
    padding-inline: clamp(1.2rem, 3.2vw, 2.75rem);
  }

  .card-top-brand {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-wordmark-frame {
    inline-size: clamp(7rem, 15vw, 10.5rem);
  }

  .card-wordmark-frame--sub {
    inline-size: clamp(6rem, 11vw, 8.25rem);
  }

  .card-center-copy {
    inline-size: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: clamp(0.8rem, 1.8vw, 1.2rem);
  }

  .card-headline {
    inline-size: 100%;
    max-inline-size: 100%;
    padding-inline: 0.15em;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
    background: linear-gradient(180deg, #ffffff 0%, #ededf2 62%, #b8b8c2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.45));
  }

  .card-headline--hero {
    font-size: clamp(1.7rem, 1.05rem + 2.7vw, 3.6rem);
    line-height: 1.03;
  }

  .card-headline--sub {
    font-size: clamp(1.32rem, 0.95rem + 1.45vw, 2.2rem);
    line-height: 1.08;
  }

  .card-description {
    max-inline-size: 46ch;
    font-size: clamp(0.94rem, 0.86rem + 0.35vw, 1.08rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-on-dark-muted);
    text-wrap: balance;
  }

  .card-description--hero {
    color: rgb(245 245 247 / 0.88);
    font-size: clamp(0.98rem, 0.88rem + 0.42vw, 1.16rem);
  }

  .card-imei-note {
    display: inline-block;
    padding-block: 0.38rem;
    padding-inline: 0.95rem;
    border-radius: var(--radius-pill);
    background: rgb(147 51 234 / 0.16);
    border: 1px solid rgb(192 132 252 / 0.38);
    color: #f3e8ff;
    font-size: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
    font-weight: 600;
    letter-spacing: -0.005em;
    box-shadow: 0 0 20px -4px rgb(147 51 234 / 0.32);
  }

  .card-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block-start: 0.2rem;
  }

  .card-cta-trigger {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: transparent;
    color: var(--cta-color);
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    filter: var(--cta-glow);
    transition: color 220ms ease-out, filter 280ms ease-out;
  }

  .card-cta-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
  }

  @supports selector(:has(*)) {
    .card-cta-trigger:focus-visible {
      outline: none;
    }
  }

  .card-cta-text {
    position: relative;
    padding-block-end: 2px;
    background-image: linear-gradient(90deg, rgb(168 85 247 / 0.8), rgb(216 180 254 / 0.95), rgb(168 85 247 / 0.8));
    background-size: 100% 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
  }

  .card-cta-arrow {
    color: var(--purple-neon-light);
    transform: translateX(var(--arrow-shift));
    transition: transform 360ms var(--ease-apple);
  }

  /* =========================================================
     5. BENTO GRID DE SERVICIOS ADICIONALES
     ========================================================= */
  .services-section {
    inline-size: 100%;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: stretch;
  }

  @container (max-inline-size: 360px) {
    .service-card-inner {
      gap: 1.15rem;
      padding-block: 1.5rem;
      padding-inline: 1rem;
    }
  }

  /* =========================================================
     6. BOTÓN NEÓN MORADO Y SECCIÓN INFERIOR WHATSAPP
     ========================================================= */
  .btn-neon-purple {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-block-size: 3.25rem;
    padding-block: 0.85rem;
    padding-inline: 1.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(168 85 247 / 0.45);
    background: linear-gradient(180deg, #16161d 0%, #09090d 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
      0 12px 28px -6px var(--purple-neon-soft),
      0 0 22px -2px var(--purple-neon-ambient),
      inset 0 1px 0 rgb(255 255 255 / 0.18);
    transition:
      transform 220ms ease-out,
      box-shadow 260ms var(--ease-apple),
      border-color 260ms var(--ease-apple);
    transition:
      transform 520ms var(--spring-tactile),
      box-shadow 300ms var(--ease-apple),
      border-color 260ms var(--ease-apple);
  }

  .btn-neon-purple:hover {
    border-color: rgb(192 132 252 / 0.78);
    transform: translateY(-2px) scale(1.025);
    box-shadow:
      0 18px 38px -6px rgb(147 51 234 / 0.6),
      0 0 32px 0 rgb(168 85 247 / 0.44),
      inset 0 1px 0 rgb(255 255 255 / 0.26);
  }

  .btn-neon-purple:active {
    transform: translateY(0) scale(0.965);
  }

  .bottom-cta-section {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-block: clamp(1rem, 2.5vw, 1.75rem) 0.5rem;
  }

  .bottom-whatsapp-btn {
    min-inline-size: min(19rem, 100%);
  }

  .closing-statement {
    max-inline-size: 54ch;
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 0.92rem + 0.72vw, 1.48rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-primary);
    text-wrap: balance;
  }

  /* =========================================================
     7. PIE DE PÁGINA APPLE CLARO
     ========================================================= */
  .site-footer {
    position: relative;
    z-index: 1;
    border-block-start: 1px solid var(--line-subtle);
    background: rgb(245 245 247 / 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-footer-inner {
    inline-size: min(1320px, 94vw);
    margin-inline: auto;
    padding-block: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
  }

  .footer-wordmark-frame {
    inline-size: 5.75rem;
  }

  .footer-note,
  .footer-tagline {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-secondary);
  }

  /* =========================================================
     8. MODAL DE SOLICITUD (MACOS SHEET)
     ========================================================= */
  .Modal {
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    max-inline-size: min(32rem, calc(100dvw - 1.5rem));
    inline-size: 100%;
    color: var(--ink-on-dark);
    opacity: 0;
    transform: scale(0.94) translateY(10px);
    transition:
      opacity 220ms var(--ease-apple),
      transform 280ms var(--ease-apple),
      display 280ms,
      overlay 280ms;
    transition-behavior: allow-discrete;
  }

  .Modal[open] {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  @starting-style {
    .Modal[open] {
      opacity: 0;
      transform: scale(0.94) translateY(12px);
    }
  }

  .Modal::backdrop {
    background: rgb(6 6 10 / 0.56);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 240ms ease-out, display 240ms, overlay 240ms;
    transition-behavior: allow-discrete;
  }

  .Modal[open]::backdrop {
    opacity: 1;
  }

  @starting-style {
    .Modal[open]::backdrop {
      opacity: 0;
    }
  }

  .Modal-surface {
    padding: clamp(1.25rem, 3.5vw, 2rem);
    border-radius: 1.75rem;
    background: linear-gradient(165deg, #0b0b0f 0%, #14141b 100%);
    border: 1px solid rgb(255 255 255 / 0.14);
    box-shadow:
      0 36px 80px -20px rgb(0 0 0 / 0.65),
      0 0 36px -14px rgb(147 51 234 / 0.35),
      inset 0 1px 0 rgb(255 255 255 / 0.16);
    display: grid;
    gap: 0.9rem;
  }

  .Modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .Modal-wordmark-frame {
    inline-size: 6.5rem;
  }

  .Modal-close {
    display: inline-grid;
    place-items: center;
    inline-size: 2.15rem;
    block-size: 2.15rem;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0.16);
    background: rgb(255 255 255 / 0.06);
    color: var(--ink-on-dark);
    cursor: pointer;
    transition: transform 220ms ease-out, background-color 200ms ease-out;
  }

  .Modal-close:hover {
    background: rgb(255 255 255 / 0.14);
    transform: scale(1.06);
  }

  .Modal-close:active {
    transform: scale(0.94);
  }

  .Modal-close:focus-visible,
  .Modal input:focus-visible,
  .Modal select:focus-visible,
  .Modal button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  .Modal-service-pill {
    justify-self: start;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--purple-neon-light);
    padding-block: 0.25rem;
    padding-inline: 0.75rem;
    border-radius: var(--radius-pill);
    background: rgb(147 51 234 / 0.18);
    border: 1px solid rgb(168 85 247 / 0.35);
  }

  .Modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1rem + 0.9vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .Modal-subtitle {
    font-size: 0.875rem;
    color: var(--ink-on-dark-muted);
    line-height: 1.5;
  }

  .Modal-form {
    display: grid;
    gap: 1rem;
    margin-block-start: 0.25rem;
  }

  .Form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .Form-row.is-single {
    grid-template-columns: 1fr;
  }

  .Form-field[hidden] {
    display: none;
  }

  .Form-field {
    display: grid;
    gap: 0.4rem;
    text-align: start;
  }

  .Form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgb(255 255 255 / 0.84);
  }

  .Form-field input,
  .Form-field select {
    inline-size: 100%;
    padding-block: 0.7rem;
    padding-inline: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgb(255 255 255 / 0.14);
    background: rgb(255 255 255 / 0.06);
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 180ms ease-out, background-color 180ms ease-out;
  }

  .Form-field input::placeholder {
    color: rgb(255 255 255 / 0.38);
  }

  .Form-field input:hover,
  .Form-field select:hover {
    border-color: rgb(255 255 255 / 0.28);
  }

  .Form-field option {
    background: #14141b;
    color: #ffffff;
  }

  .Modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-block-start: 0.35rem;
  }

  .btn-ghost-dark {
    padding-block: 0.75rem;
    padding-inline: 1.25rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(255 255 255 / 0.16);
    background: transparent;
    color: var(--ink-on-dark-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 200ms ease-out, color 200ms ease-out, transform 200ms ease-out;
  }

  .btn-ghost-dark:hover {
    background: rgb(255 255 255 / 0.08);
    color: #ffffff;
  }

  .btn-ghost-dark:active {
    transform: scale(0.96);
  }

  /* =========================================================
     9. ANIMACIONES DE ENTRADA MACOS Y RESPONSIVIDAD MÓVIL
     ========================================================= */
  @media (prefers-reduced-motion: no-preference) {
    .reveal-step {
      opacity: 0;
      transform: translateY(18px) scale(0.985);
      animation: macos-enter 760ms var(--ease-apple) forwards;
      animation-delay: calc(var(--stagger, 0) * 85ms);
    }

    @keyframes macos-enter {
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal-step {
      opacity: 1;
      transform: none;
    }

    .curve-float-a,
    .curve-float-b,
    .curve-neon-pulse {
      animation: none;
    }

    .menu-trigger,
    .btn-neon-purple,
    .service-card,
    .Modal,
    .Modal::backdrop {
      transition: none;
    }
  }

  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: 1fr;
    }

    .hero-brand-bar {
      flex-direction: column;
      text-align: center;
      gap: 0.7rem;
    }

    .hero-brand-divider {
      inline-size: 3rem;
      block-size: 1px;
      background: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.2), transparent);
    }

    .Form-row {
      grid-template-columns: 1fr;
    }

    .menu-trigger-label {
      display: none;
    }

    .site-footer-inner {
      justify-content: center;
      text-align: center;
    }
  }
}
