/* =========================================================
   YesiDigital · sistema visual 2026
   Paleta y tipografía tomadas del tablero de marca
   (azul profundo #0B1F3B, cian #00D1FF, púrpura #8B5CF6,
   gris claro #F5F7FA, Montserrat).
   Orden de capas: reset < tokens < base < components < sections
   ========================================================= */
@layer reset, tokens, base, components, sections;

/* ---------- Fuentes autohospedadas ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fuente de respaldo con métricas similares para evitar saltos de diseño */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 113%;
  ascent-override: 85.7%;
  descent-override: 22.2%;
  line-gap-override: 0%;
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { padding: 0; list-style: none; }
  summary { list-style: none; }
  summary::-webkit-details-marker { display: none; }
}

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    /* Marca */
    --navy-950: #050f21;
    --navy-900: #0b1f3b;
    --navy-800: #112d52;
    --navy-700: #1a3f6e;
    --cyan: #00d1ff;
    --cyan-soft: #5fe0ff;
    --blue: #0a6cff;
    --blue-strong: #0759db;   /* botones con texto blanco: contraste ≥ 6:1 */
    --violet: #8b5cf6;
    --mist: #f5f7fa;
    --white: #ffffff;

    /* Texto */
    --ink: #0b1f3b;
    --muted: #546680;         /* sobre blanco/gris claro: ≥ 5:1 */
    --on-dark: #ffffff;
    --on-dark-muted: #b4c4d8; /* sobre azul profundo: ≥ 9:1 */
    --line: #dbe3ee;
    --line-dark: rgba(255, 255, 255, .14);

    /* Tipografía */
    --font: "Montserrat", "Montserrat Fallback", "Segoe UI", system-ui, sans-serif;
    --fs-body: 1.0625rem;
    --fs-small: .875rem;
    --fs-h1: clamp(2.3rem, 1.05rem + 3.4vw, 3.7rem);
    --fs-h2: clamp(1.9rem, 1.1rem + 2.7vw, 3.15rem);
    --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);

    /* Espacio y forma */
    --max: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 2.5rem + 7vw, 8rem);
    --r-lg: 28px;
    --r-md: 20px;
    --r-sm: 14px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 5.5rem;
  }
}

/* ---------- Base ---------- */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    color-scheme: light;
  }
  body {
    background: var(--mist);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.65;
    font-weight: 450;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  body.menu-open { overflow: hidden; }

  h1, h2, h3 { font-weight: 700; text-wrap: balance; }
  h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.035em; font-weight: 750; }
  h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.03em; }
  h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; }
  p { text-wrap: pretty; }

  .container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

  .svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: fixed; top: -4rem; left: 1rem; z-index: 200;
    padding: .75rem 1.1rem; border-radius: 999px;
    background: var(--cyan); color: var(--navy-900); font-weight: 700;
    transition: top .2s var(--ease);
  }
  .skip-link:focus { top: 1rem; }

  :focus-visible { outline: 3px solid var(--focus, var(--cyan)); outline-offset: 3px; border-radius: 6px; }

  .on-light { --focus: var(--blue-strong); }
  .on-dark  { --focus: var(--cyan); }

  /* Texto con degradado de marca (cian → azul → púrpura) */
  .grad {
    background: linear-gradient(95deg, var(--cyan) 0%, #4a8dff 55%, var(--violet) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}

/* ---------- Componentes ---------- */
@layer components {

  /* Botones */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    min-height: 3.25rem; padding: .5rem 1.5rem;
    border: 1px solid transparent; border-radius: 999px;
    font-size: .95rem; font-weight: 700; line-height: 1.1; letter-spacing: -.005em;
    cursor: pointer; text-align: center;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  }
  .btn:active { transform: scale(.975); }
  .btn svg { flex: none; }
  .btn-icon {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
    border-radius: 50%; transition: transform .3s var(--ease), background-color .25s var(--ease);
  }
  .btn:has(.btn-icon) { padding-right: .5rem; }
  .btn-icon svg { width: 1.1rem; height: 1.1rem; }
  .btn:hover .btn-icon { transform: translate(2px, -2px); }
  .btn-glyph { width: 1.25rem; height: 1.25rem; }

  .btn-primary { background: var(--cyan); color: var(--navy-900); }
  .btn-primary .btn-icon { background: var(--navy-900); color: var(--cyan); }
  .btn-primary:hover { background: var(--cyan-soft); }

  .btn-solid { background: var(--blue-strong); color: #fff; }
  .btn-solid .btn-icon { background: rgba(255, 255, 255, .18); color: #fff; }
  .btn-solid:hover { background: var(--navy-900); }

  .btn-ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .04); }
  .btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); }

  .btn-wa { background: #25d366; color: var(--navy-900); }
  .btn-wa:hover { background: #4de48a; }

  /* Marca */
  .brand { display: inline-flex; align-items: center; gap: .65rem; }
  .brand-mark { width: 2.2rem; height: auto; }
  .brand-word { font-size: 1.2rem; font-weight: 750; letter-spacing: -.035em; color: #fff; line-height: 1; }
  .brand-word span {
    background: linear-gradient(95deg, var(--cyan), #3d83ff 60%, var(--violet));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }

  /* Cabecera flotante */
  .site-header { position: fixed; inset: .9rem 0 auto; z-index: 60; pointer-events: none; }
  .nav-bar {
    position: relative; pointer-events: auto;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 4rem; padding: .5rem .6rem .5rem 1.15rem;
    border-radius: 999px; isolation: isolate;
  }
  /* El fondo vive en un pseudo-elemento: backdrop-filter en el propio .nav-bar
     rompería el menú móvil de pantalla completa (position: fixed). */
  .nav-bar::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgba(11, 31, 59, .55);
    border: 1px solid var(--line-dark);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
  }
  .site-header.is-scrolled .nav-bar::before {
    background: rgba(11, 31, 59, .9);
    box-shadow: 0 14px 40px rgba(5, 15, 33, .35);
  }

  .site-nav { display: flex; align-items: center; gap: .25rem; font-size: .88rem; font-weight: 600; }
  .site-nav a:not(.nav-cta) { padding: .6rem .9rem; border-radius: 999px; color: var(--on-dark-muted); transition: color .2s, background-color .2s; }
  .site-nav a:not(.nav-cta):hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .nav-cta {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: .5rem;
    min-height: 2.9rem; padding: .5rem 1.15rem; border-radius: 999px;
    background: var(--cyan); color: var(--navy-900); font-weight: 700;
    transition: background-color .25s var(--ease);
  }
  .nav-cta svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
  .nav-cta:hover { background: var(--cyan-soft); }
  .nav-cta:hover svg { transform: translate(2px, -2px); }

  .menu-toggle { display: none; }

  /* Botón flotante de WhatsApp */
  .fab {
    position: fixed; z-index: 55;
    right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 3.5rem; padding: .5rem 1.2rem .5rem 1rem; border-radius: 999px;
    background: #25d366; color: var(--navy-900); font-weight: 700; font-size: .9rem;
    box-shadow: 0 12px 30px rgba(5, 15, 33, .3);
    opacity: 0; transform: translateY(1rem); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
  }
  .fab svg { width: 1.6rem; height: 1.6rem; }
  .fab.is-visible:not(.is-hidden) { opacity: 1; transform: none; pointer-events: auto; }
  .fab:hover { background: #4de48a; }

  /* Tarjetas del bento */
  .card {
    position: relative; display: flex; flex-direction: column;
    padding: clamp(1.4rem, 2.2vw, 2rem); border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); background: #fff;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  }
  .card h3 { margin-block: 1.4rem .7rem; }
  .card p { font-size: .95rem; max-width: 42ch; }
  .card-icon {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px;
    transition: transform .35s var(--ease);
  }
  .card-icon svg { width: 1.5rem; height: 1.5rem; }
  .card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
  .card-link {
    display: inline-flex; align-items: center; gap: .55rem; margin-top: auto; padding-top: 1.5rem;
    font-size: .9rem; font-weight: 700; width: fit-content;
  }
  .card-link svg { width: 1.05rem; height: 1.05rem; transition: transform .3s var(--ease); }
  .card:hover .card-link svg { transform: translateX(4px); }
  /* Toda la tarjeta es clicable (área táctil amplia) */
  .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .card-link:focus-visible { outline: none; }
  .card:has(.card-link:focus-visible) { outline: 3px solid var(--focus, var(--cyan)); outline-offset: 3px; }

  /* Formulario */
  .field { margin-bottom: 1.1rem; }
  .field label { display: block; margin-bottom: .45rem; font-size: .85rem; font-weight: 650; color: var(--on-dark-muted); }
  .field label b, .form-head b { color: var(--cyan); font-weight: 700; }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 3.25rem; padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm);
    background: rgba(5, 15, 33, .55); color: #fff; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
  }
  .field textarea { min-height: 7.5rem; resize: vertical; }
  .field select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d1ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
  }
  .field select option { color: var(--ink); background: #fff; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .4); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 209, 255, .22);
  }
  .field :user-invalid { border-color: #ff8f8f; box-shadow: 0 0 0 4px rgba(255, 120, 120, .18); }
}

/* ---------- Secciones ---------- */
@layer sections {

  /* ===== Hero ===== */
  .hero {
    position: relative; overflow: clip; isolation: isolate;
    padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 7vw, 6.5rem);
    color: var(--on-dark);
    background:
      radial-gradient(60rem 36rem at 88% -8%, rgba(0, 209, 255, .24), transparent 60%),
      radial-gradient(44rem 30rem at -8% 108%, rgba(139, 92, 246, .26), transparent 62%),
      linear-gradient(180deg, var(--navy-900), var(--navy-950));
  }
  /* Rejilla técnica sutil (se desvanece hacia los bordes) */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image:
      linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 70%);
  }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
  .hero-chip {
    display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem;
    padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; line-height: 1.2;
    color: var(--on-dark-muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
  }
  .pulse { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(0, 209, 255, .18); }
  .hero h1 { margin-bottom: 1.4rem; }
  .hero h1 .grad { display: block; }
  .hero-lead { max-width: 52ch; font-size: clamp(1.02rem, .95rem + .35vw, 1.15rem); color: var(--on-dark-muted); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2.2rem 0 2rem; }
  .hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; font-size: .84rem; font-weight: 600; color: var(--on-dark-muted); }
  .hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
  .hero-points svg { width: 1.05rem; height: 1.05rem; color: var(--cyan); }

  .hero-visual { position: relative; margin: 0; }
  .frame {
    padding: 1px; border-radius: var(--r-lg);
    background: linear-gradient(140deg, rgba(0, 209, 255, .75), rgba(139, 92, 246, .45) 55%, rgba(255, 255, 255, .1));
    box-shadow: 0 40px 90px -30px rgba(0, 209, 255, .35), 0 30px 60px -30px rgba(5, 15, 33, .9);
  }
  .frame img { width: 100%; aspect-ratio: 887 / 546; object-fit: cover; border-radius: calc(var(--r-lg) - 1px); }
  .glass {
    position: absolute; display: inline-flex; align-items: center; gap: .6rem;
    padding: .65rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 650; color: #fff;
    background: rgba(11, 31, 59, .62); border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px rgba(5, 15, 33, .4);
  }
  .glass svg { width: 1.1rem; height: 1.1rem; color: var(--cyan); }
  .glass-a { left: -1.4rem; bottom: 12%; }
  .glass-b { right: 1.2rem; top: -1.1rem; }
  .hero-sentinel { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }

  /* Entrada del hero: un único momento orquestado */
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy > *, .hero-visual { animation: rise .9s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; }
    .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .hero-copy > :nth-child(4) { animation-delay: .24s; }
    .hero-copy > :nth-child(5) { animation-delay: .32s; }
    .hero-visual { animation-delay: .2s; }
    .glass-a { animation: float 7s ease-in-out 1.2s infinite alternate; }
    .glass-b { animation: float 8s ease-in-out 1.6s infinite alternate-reverse; }
  }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes float { from { translate: 0 0; } to { translate: 0 -8px; } }

  /* ===== Página 404 ===== */
  .notfound { min-height: 100vh; display: grid; align-items: center; }
  .notfound .hero-copy { max-width: 40rem; }
  .notfound h1 { margin-top: 2rem; }

  /* ===== Enfoque ===== */
  .approach { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--mist); border-bottom: 1px solid var(--line); }
  .approach-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
  .approach-text { max-width: 30ch; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; color: var(--navy-900); }
  .approach-tags { display: flex; flex-wrap: wrap; gap: .7rem; }
  .approach-tags li {
    display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.1rem;
    border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font-size: .88rem; font-weight: 650; color: var(--navy-900);
  }
  .approach-tags svg { width: 1.1rem; height: 1.1rem; color: var(--blue-strong); }

  /* ===== Bloques genéricos ===== */
  .section { padding: var(--section) 0; }
  .section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .section-head h2 { max-width: 18ch; }
  .section-head p { color: var(--muted); max-width: 42ch; }

  /* ===== Servicios ===== */
  .services { background: #fff; }
  .bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(15rem, auto)); gap: 1.1rem; }
  .card-feature { grid-row: span 2; background: var(--navy-900); color: #fff; border-color: var(--navy-900);
    background-image: radial-gradient(34rem 20rem at 100% 0%, rgba(0, 209, 255, .22), transparent 60%), radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: auto, 20px 20px; }
  .card-feature .card-icon { background: rgba(0, 209, 255, .14); color: var(--cyan); }
  .card-feature p { color: var(--on-dark-muted); }
  .card-feature .card-link { color: var(--cyan); }
  .card-feature h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.25rem); }
  .flow { width: 100%; margin-top: 2rem; color: var(--on-dark-muted); }
  .flow .node-hot { stroke: var(--cyan); fill: rgba(0, 209, 255, .1); }
  .flow g:last-child text:nth-child(2) { fill: var(--cyan); }

  .card-ai { background: linear-gradient(135deg, var(--blue-strong), #5b4be0 70%, var(--violet)); border-color: transparent; color: #fff; }
  .card-ai .card-icon { background: rgba(255, 255, 255, .18); color: #fff; }
  .card-ai p { color: rgba(255, 255, 255, .86); }
  .card-ai .card-link { color: #fff; }

  .card-data { background: var(--mist); }
  .card-data .card-icon { background: rgba(10, 108, 255, .1); color: var(--blue-strong); }
  .card-data p { color: var(--muted); }
  .card-data .card-link { color: var(--blue-strong); }

  .card-consult { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
  .card-consult .card-icon { background: rgba(0, 209, 255, .14); color: var(--cyan); }
  .card-consult p { color: var(--on-dark-muted); }
  .card-consult .card-link { color: var(--cyan); }

  .card-consult { grid-column: 2 / span 2; }
  .card-data:hover { border-color: var(--blue); box-shadow: 0 18px 40px -22px rgba(10, 108, 255, .5); }
  .card-ai:hover, .card-consult:hover, .card-feature:hover { box-shadow: 0 22px 44px -24px rgba(5, 15, 33, .65); }

  /* ===== Problema ===== */
  .challenge { color: #fff; background: radial-gradient(40rem 26rem at 0% 0%, rgba(139, 92, 246, .2), transparent 60%), var(--navy-900); }
  .challenge-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
  .challenge-copy h2 { max-width: 16ch; margin-bottom: 2rem; }
  .pain-list { border-top: 1px solid var(--line-dark); }
  .pain-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.1rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line-dark); }
  .pain-list svg { width: 2.75rem; height: 2.75rem; padding: .7rem; border-radius: 14px; background: rgba(0, 209, 255, .1); color: var(--cyan); }
  .pain-list p { font-size: 1.05rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; color: #e3ecf6; }

  /* ===== Método ===== */
  .method { background: var(--mist); }
  .steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); counter-reset: none; }
  .steps::before, .steps::after { content: ""; position: absolute; top: 1.5rem; left: 1.5rem; right: calc(33.333% - 1.5rem); height: 2px; }
  .steps::before { background: var(--line); }
  .steps::after { background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
  .steps.is-in::after { transform: scaleX(1); }
  .step { position: relative; }
  .step-dot {
    position: relative; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.6rem;
    border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--blue-strong);
    font-size: 1rem; font-weight: 750; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  }
  .steps.is-in .step-dot { background: var(--navy-900); border-color: var(--navy-900); color: var(--cyan); }
  .steps.is-in .step:nth-child(2) .step-dot { transition-delay: .5s; }
  .steps.is-in .step:nth-child(3) .step-dot { transition-delay: 1s; }
  .step h3 { margin-bottom: .6rem; font-size: 1.5rem; }
  .step p { color: var(--muted); max-width: 32ch; font-size: .98rem; }

  /* ===== Idea ===== */
  .statement { padding: clamp(5rem, 3rem + 9vw, 10rem) 0; color: #fff; background: radial-gradient(48rem 28rem at 100% 100%, rgba(0, 209, 255, .18), transparent 60%), radial-gradient(40rem 26rem at 0% 0%, rgba(139, 92, 246, .22), transparent 60%), var(--navy-950); }
  .statement-text { max-width: 22ch; font-size: clamp(2rem, 1rem + 4.2vw, 4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
  .statement-word { display: inline-block; margin-right: .22em; color: rgba(255, 255, 255, .26); transition: color .6s var(--ease); }
  .statement-word.is-lit { color: #fff; }

  /* ===== Sobre mí ===== */
  .about { background: #fff; }
  .about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
  .about-card {
    position: relative; max-width: 26rem; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); color: #fff; overflow: hidden;
    background: radial-gradient(18rem 14rem at 90% 0%, rgba(0, 209, 255, .3), transparent 65%), radial-gradient(16rem 12rem at 0% 100%, rgba(139, 92, 246, .35), transparent 65%), var(--navy-900);
  }
  .about-card img { width: 78%; margin: 1rem auto 2rem; filter: drop-shadow(0 18px 30px rgba(0, 209, 255, .25)); }
  .about-card-foot { display: grid; gap: .15rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
  .about-card-foot strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
  .about-card-foot span { font-size: .85rem; color: var(--on-dark-muted); }
  .about-copy h2 { max-width: 17ch; margin-bottom: 1.4rem; }
  .about-copy > p { max-width: 58ch; color: var(--muted); margin-bottom: 1rem; }
  .traits { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2rem; }
  .traits li { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: .86rem; font-weight: 650; }
  .traits svg { width: 1.1rem; height: 1.1rem; color: var(--blue-strong); }

  /* ===== Preguntas ===== */
  .faq { background: var(--mist); }
  .faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 1rem); }
  .faq-intro h2 { max-width: 14ch; margin-bottom: 1.2rem; }
  .faq-intro p { color: var(--muted); max-width: 36ch; }
  .faq-list { display: grid; gap: .8rem; }
  .faq-list details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
  .faq-list details[open] { border-color: var(--blue); box-shadow: 0 16px 36px -24px rgba(10, 108, 255, .55); }
  .faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.3rem 1.5rem; min-height: 3.5rem; cursor: pointer; font-size: 1.02rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; border-radius: var(--r-md); }
  .faq-list summary:focus-visible { outline-offset: 2px; border-radius: var(--r-md); }
  .faq-list summary svg { flex: none; width: 2rem; height: 2rem; padding: .4rem; border-radius: 50%; background: var(--mist); color: var(--blue-strong); transition: transform .35s var(--ease), background-color .25s, color .25s; }
  .faq-list details[open] summary svg { transform: rotate(45deg); background: var(--blue-strong); color: #fff; }
  .faq-list details p { padding: 0 1.5rem 1.4rem; max-width: 62ch; color: var(--muted); font-size: .97rem; }
  /* Apertura suave (mejora progresiva; navegadores sin soporte abren de golpe) */
  @supports (interpolate-size: allow-keywords) {
    .faq-list { interpolate-size: allow-keywords; }
    .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
    .faq-list details[open]::details-content { block-size: auto; }
  }

  /* ===== Contacto ===== */
  .contact { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); color: #fff; background: radial-gradient(44rem 28rem at 100% 0%, rgba(0, 209, 255, .16), transparent 60%), radial-gradient(40rem 26rem at 0% 100%, rgba(139, 92, 246, .2), transparent 60%), var(--navy-900); }
  .contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
  .contact-copy h2 { max-width: 15ch; margin-bottom: 1.2rem; }
  .contact-lead { max-width: 40ch; color: var(--on-dark-muted); }
  .channels { display: grid; gap: .75rem; margin-top: 2.2rem; }
  .channel {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; min-height: 4.25rem;
    padding: .8rem 1.1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark);
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
  }
  .channel:hover { background: rgba(255, 255, 255, .1); border-color: rgba(0, 209, 255, .55); }
  .channel-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: rgba(0, 209, 255, .12); color: var(--cyan); }
  .channel-icon svg { width: 1.35rem; height: 1.35rem; }
  .channel strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.25; }
  .channel small { display: block; font-size: .84rem; color: var(--on-dark-muted); overflow-wrap: anywhere; }
  .channel-go { width: 1.15rem; height: 1.15rem; color: var(--on-dark-muted); transition: transform .3s var(--ease), color .2s; }
  .channel:hover .channel-go { transform: translate(2px, -2px); color: var(--cyan); }
  .channel-wa { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .45); }
  .channel-wa .channel-icon { background: #25d366; color: var(--navy-900); }
  .channel-wa:hover { background: rgba(37, 211, 102, .2); border-color: #25d366; }

  .form { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .form-head { margin-bottom: 1.6rem; }
  .form-head h3 { margin-bottom: .3rem; }
  .form-head p { font-size: .85rem; color: var(--on-dark-muted); }
  .consent { display: flex; gap: .75rem; align-items: flex-start; margin: .3rem 0 1.5rem; font-size: .84rem; color: var(--on-dark-muted); cursor: pointer; }
  .consent input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--cyan); }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
  .form-status { min-height: 1.4rem; margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--cyan); }
  .form-status.is-error { color: #ffb1b1; }

  /* ===== Pie ===== */
  .footer { padding: 3rem 0 1.5rem; color: #fff; background: var(--navy-950); border-top: 1px solid var(--line-dark); }
  .footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; gap: 2rem; padding-bottom: 2.5rem; }
  .footer-top > p { font-size: .9rem; color: var(--on-dark-muted); }
  .footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.6rem; font-size: .88rem; font-weight: 600; color: var(--on-dark-muted); }
  .footer-nav a { padding: .35rem 0; transition: color .2s; }
  .footer-nav a:hover { color: var(--cyan); }
  .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .8rem; color: #8fa3bb; }

  /* ===== Responsive ===== */
  @media (max-width: 1020px) {
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .card-feature { grid-column: 1 / -1; grid-row: auto; }
    .card-consult { grid-column: 1 / -1; }
    .glass-a { left: .6rem; }
  }

  @media (max-width: 860px) {
    .hero-grid, .challenge-grid, .about-grid, .faq-grid, .contact-grid, .section-head { grid-template-columns: 1fr; }
    .hero-visual { max-width: 38rem; }
    .faq-intro { position: static; }
    .section-head { gap: 1rem; }
    .steps { grid-template-columns: 1fr; gap: 0; }
    .steps::before, .steps::after { top: 1.5rem; bottom: 1.5rem; left: calc(1.5rem - 1px); right: auto; width: 2px; height: auto; }
    .steps::after { transform-origin: top; transform: scaleY(0); }
    .steps.is-in::after { transform: scaleY(1); }
    .step { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.25rem; padding-bottom: 2.2rem; }
    .step:last-child { padding-bottom: 0; }
    .step-dot { grid-row: span 2; margin-bottom: 0; }
    .step h3 { margin-bottom: .3rem; align-self: end; }
    .footer-top { grid-template-columns: 1fr; gap: 1.2rem; }
    .footer-nav { justify-content: flex-start; }

    /* Menú móvil de pantalla completa */
    .nav-bar .brand { position: relative; z-index: 2; }
    .menu-toggle {
      display: grid; place-content: center; gap: 5px; width: 3rem; height: 3rem; border-radius: 50%;
      background: rgba(255, 255, 255, .1); position: relative; z-index: 2;
    }
    .menu-toggle i { display: block; width: 1.3rem; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
    .menu-toggle.is-open i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-open i:nth-of-type(2) { opacity: 0; }
    .menu-toggle.is-open i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
      position: fixed; inset: 0; z-index: 1; height: 100dvh; padding: 7rem var(--gutter) 2rem;
      flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .25rem; font-size: 1.5rem; font-weight: 700;
      background: var(--navy-950);
      visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
    .site-nav a:not(.nav-cta) { padding: .9rem 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); color: #fff; }
    .site-nav a:not(.nav-cta):hover { background: none; color: var(--cyan); }
    .nav-cta { justify-content: center; margin: 1.5rem 0 0; min-height: 3.5rem; font-size: 1rem; }
  }

  @media (max-width: 640px) {
    :root { --header-h: 5rem; }
    .site-header { top: .6rem; }
    .brand-word { font-size: 1.1rem; }
    .bento { grid-template-columns: 1fr; }
    .card-consult { grid-column: auto; }
    .hero-actions .btn { width: 100%; }
    .glass-a { left: .5rem; bottom: 8%; }
    .glass-b { right: .5rem; top: -1rem; }
    .form-actions { grid-template-columns: 1fr; }
    .approach-grid { flex-direction: column; align-items: flex-start; }
    .fab span { display: none; }
    .fab { padding: .5rem; width: 3.5rem; justify-content: center; }
    .footer-bottom { flex-direction: column; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .steps::after { transform: none; }
  }
}
