/* ==========================================================================
   A8 Autoeskola · V2 — Sistema de diseño
   Minimalista: blanco, azul corporativo del logo (#00C3EF), bordes finos,
   esquinas redondeadas y sombras suaves. CSS nativo, sin compilación.
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------- Fuente (autoalojada: sin peticiones a Google, RGPD) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  a { color: inherit; }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  [hidden] { display: none !important; }
}

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    --paper: #FFFFFF;
    --paper-2: #F4F7FA;
    --card: #FFFFFF;
    --white: #FFFFFF;
    --ink: #0F1C26;
    --ink-2: #2E3E4A;
    --ink-soft: #5B6B77;
    --ink-faint: #8A99A5;
    --line: #E4EBF0;
    --line-2: #D3DDE4;
    --asphalt: #0F1C26;
    --asphalt-2: #1C2D3A;
    /* Azul corporativo: el del logo original (#00C3EF) y sus variantes */
    --brand: #00C3EF;
    --brand-2: #00B2DC;
    --brand-soft: #E5F8FE;
    --brand-deep: #0B7FC1;
    --brand-ink: #005F8F;
    --red: #D4291F;
    --red-soft: #FDECEA;

    --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --wrap: 1200px;
    --gutter: clamp(18px, 4vw, 40px);
    --section-y: clamp(4.5rem, 9vw, 7.5rem);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-xs: 0 1px 2px rgba(15, 28, 38, .06);
    --shadow: 0 1px 2px rgba(15, 28, 38, .04), 0 8px 24px -8px rgba(15, 28, 38, .12);
    --shadow-lg: 0 2px 6px rgba(15, 28, 38, .04), 0 28px 60px -20px rgba(15, 28, 38, .22);
    --ring: 0 0 0 4px rgba(0, 195, 239, .22);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
  body {
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
  }
  ::selection { background: var(--brand); color: var(--ink); }
  :focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; border-radius: 6px; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
  p a, li a, dd a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  p a:hover, li a:hover { text-decoration-thickness: 2px; }
  strong, b { font-weight: 700; }
  code { font-family: var(--font-code); }
  main:focus { outline: none; }

  .i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .skip {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--ink); color: var(--white); padding: .7rem 1rem;
    font-weight: 600; border-radius: var(--radius-sm);
  }
  .skip:focus { top: 1rem; }
}

/* ---------- Layout ---------- */
@layer layout {
  .wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: var(--section-y); position: relative; overflow-x: clip; }
  .section--paper2, .section--asphalt { background: var(--paper-2); }
  .section--ink { background: var(--ink); color: #C9D5DE; }
  .section--rule { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Componentes
   ========================================================================== */
@layer components {

  /* ----- Botones ----- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px; padding: .75rem 1.35rem;
    background: transparent; color: var(--ink);
    border: 1px solid transparent; border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
    text-decoration: none; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  .btn .i { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
  .btn:hover .i:last-child { transform: translateX(3px); }
  .btn--brand { background: var(--brand); color: var(--ink); }
  .btn--brand:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 160, 210, .7); }
  .btn--ink { background: var(--ink); color: var(--white); }
  .btn--ink:hover { background: #1D3141; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(15, 28, 38, .6); }
  .btn--line { border-color: var(--line-2); background: var(--white); }
  .btn--line:hover { border-color: var(--ink-faint); background: var(--paper-2); }
  .btn--line-light { color: var(--white); border-color: rgba(255, 255, 255, .25); }
  .btn--line-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
  .btn:active { transform: translateY(0); box-shadow: none; }
  .btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .92rem; }
  .btn--lg { min-height: 54px; padding: .9rem 1.65rem; font-size: 1.05rem; }
  .btn--block { width: 100%; }
  .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

  /* ----- Etiquetas ----- */
  .kicker {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-ink);
  }
  .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
  .tag {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .8rem; font-weight: 600;
    background: rgba(255, 255, 255, .92); color: var(--ink); padding: .45rem .8rem; border-radius: 999px;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(8px);
  }
  .tag .i { color: var(--brand-deep); }
  .text-brand { color: var(--brand-deep); }
  .section--ink .text-brand { color: var(--brand); }

  /* ----- Placa L (la de la autoescuela) ----- */
  .plate {
    --s: 56px;
    display: inline-grid; place-items: center; flex: none;
    width: var(--s); height: var(--s);
    background: var(--brand-deep); color: var(--white);
    border-radius: calc(var(--s) * .22);
    box-shadow: inset 0 0 0 calc(var(--s) * .06) var(--brand-deep), inset 0 0 0 calc(var(--s) * .085) rgba(255, 255, 255, .85);
    font-family: var(--font-display); font-weight: 800; font-size: calc(var(--s) * .56); line-height: 1;
  }
  .plate--xs { --s: 20px; box-shadow: none; }
  .plate--md { --s: 48px; }
  .plate--xl { --s: clamp(64px, 7vw, 84px); }

  /* ----- Lista con checks ----- */
  .ticks { display: grid; gap: .6rem; }
  .ticks li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; }
  .ticks li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: .12em; border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1C26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  }

  /* ----- Nota ----- */
  .note {
    display: flex; gap: .9rem; align-items: flex-start;
    margin-top: 1.75rem; padding: 1.1rem 1.3rem;
    background: var(--paper-2); border-radius: var(--radius);
    font-size: .98rem; color: var(--ink-2);
  }
  .note > .i { width: 1.35rem; height: 1.35rem; margin-top: .15rem; color: var(--brand-deep); }

  /* ----- Punto de estado (abierto/cerrado) ----- */
  .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); flex: none; }
  [data-open="1"] .dot { background: var(--brand); box-shadow: 0 0 0 0 rgba(0, 195, 239, .6); animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(0, 195, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 195, 239, 0); } }

  /* ----- Tarjeta de precio ----- */
  .pcard { position: relative; max-width: 440px; margin-inline: auto; padding: clamp(1.6rem, 3.5vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
  .pcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
  .pcard__label { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
  .pcard__pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .82rem; font-weight: 700; }
  .pcard__price { display: flex; align-items: baseline; gap: .5rem; margin: 1.25rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .pcard__price strong { font-size: clamp(3.2rem, 7vw, 4.2rem); font-weight: 800; letter-spacing: -.032em; line-height: 1; color: var(--ink); }
  .pcard__price span { color: var(--ink-soft); font-weight: 500; }
  .pcard__foot { margin: 1.5rem 0 1.25rem; font-size: .92rem; color: var(--ink-soft); }

  /* ----- Formularios ----- */
  .field { display: grid; gap: .45rem; align-content: start; }
  fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
  .field__label { font-size: .88rem; font-weight: 600; color: var(--ink); }
  .field__label em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
  .input {
    width: 100%; min-height: 50px; padding: .75rem 1rem;
    background: var(--white); border: 1px solid var(--line-2); border-radius: 12px;
    font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
  }
  .input::placeholder { color: var(--ink-faint); }
  .input:hover { border-color: var(--ink-faint); }
  .input:focus { outline: none; border-color: var(--brand-deep); box-shadow: var(--ring); }
  textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
  select.input { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B77' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat; padding-right: 2.6rem; }
  .field.has-error .input { border-color: var(--red); background-color: #FFF8F7; }
  .field__error { font-size: .86rem; color: var(--red); font-weight: 600; }
  .field__hint { font-size: .88rem; color: var(--ink-soft); }

  .chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; }
  .chip { position: relative; }
  .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .chip span {
    display: inline-flex; align-items: center; min-height: 40px; padding: .5rem 1rem;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--white);
    font-weight: 500; font-size: .95rem; transition: background-color .15s, color .15s, border-color .15s;
  }
  .chip:hover span { border-color: var(--ink-faint); }
  .chip input:checked + span { background: var(--brand-soft); border-color: var(--brand-deep); color: var(--brand-ink); font-weight: 600; }
  .chip input:focus-visible + span { box-shadow: var(--ring); }

  .check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
  .check input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: .1rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
  .check input::after { content: ""; width: 10px; height: 6px; border: solid var(--white); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
  .check input:checked { background: var(--brand-deep); border-color: var(--brand-deep); }
  .check input:checked::after { opacity: 1; }
  .check input:focus-visible { box-shadow: var(--ring); outline: none; }
  .has-error .check input { border-color: var(--red); }

  .alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border: 1px solid transparent; border-radius: 12px; font-weight: 500; font-size: .97rem; }
  .alert .i { width: 1.25rem; height: 1.25rem; margin-top: .12rem; }
  .alert--error { background: var(--red-soft); border-color: #F6C9C4; color: #8A1B12; }
  .alert--ok { background: var(--brand-soft); border-color: #B9EBFA; color: var(--brand-ink); }
  .alert--info { background: var(--paper-2); border-color: var(--line); color: var(--ink-2); }

  .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

  /* ----- Mapa (carga bajo demanda) ----- */
  .map { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
  .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .map__ph { position: absolute; inset: 0; display: grid; }
  .map__art {
    position: absolute; inset: 0;
    background:
      linear-gradient(0deg, transparent 48%, rgba(15, 28, 38, .05) 48% 52%, transparent 52%) 0 0 / 64px 64px,
      linear-gradient(90deg, transparent 48%, rgba(15, 28, 38, .05) 48% 52%, transparent 52%) 0 0 / 64px 64px,
      #EEF3F6;
  }
  .map__road { position: absolute; background: var(--white); box-shadow: 0 0 0 1px rgba(15, 28, 38, .06); }
  .map__road--a { left: -10%; right: -10%; top: 46%; height: 22px; transform: rotate(-8deg); }
  .map__road--b { top: -10%; bottom: -10%; left: 58%; width: 18px; transform: rotate(14deg); }
  .map__road--c { left: -10%; width: 70%; top: 18%; height: 12px; transform: rotate(22deg); background: rgba(0, 195, 239, .45); box-shadow: none; }
  .map__pin {
    position: absolute; left: 50%; top: 42%; translate: -50% -100%;
    width: 78px; height: 56px; display: grid; place-items: center;
    background: var(--white); border-radius: 14px; padding: 8px 10px;
    box-shadow: var(--shadow);
  }
  .map__pin::after { content: ""; position: absolute; left: 50%; bottom: -9px; translate: -50% 0; border: 7px solid transparent; border-top: 10px solid var(--white); border-bottom: 0; }
  .map__pin img { width: 100%; height: auto; }
  .map__ui { position: relative; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 1rem 1.25rem; background: linear-gradient(transparent, rgba(255, 255, 255, .97) 42%); }
  .map__ext { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--brand-ink); }
  .map__ext:hover { text-decoration: underline; }
  .map__note { flex-basis: 100%; font-size: .78rem; color: var(--ink-faint); }

  /* ----- Horario ----- */
  .hours__status { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: .6rem; }
  .hours__table div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
  .hours__table dt { color: var(--ink-soft); }
  .hours__table dd { font-weight: 600; color: var(--ink); white-space: nowrap; }
  .hours__table .is-today dt, .hours__table .is-today dd { color: var(--ink); font-weight: 700; }
  .hours__table .is-today dt::after { content: " · hoy"; font-size: .78rem; font-weight: 600; color: var(--brand-deep); }

  /* ----- FAQ ----- */
  .faq__list { border-bottom: 1px solid var(--line); }
  .qa { border-top: 1px solid var(--line); }
  .qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.3rem 0; cursor: pointer; list-style: none;
    font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.35; color: var(--ink);
  }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary:hover { color: var(--brand-ink); }
  .qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); transition: background-color .2s, transform .25s var(--ease); }
  .qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); translate: -50% -50%; }
  .qa__icon::after { rotate: 90deg; transition: rotate .25s var(--ease); }
  .qa[open] .qa__icon { background: var(--brand); }
  .qa[open] .qa__icon::after { rotate: 0deg; }
  .qa__a { padding: 0 3.5rem 1.5rem 0; color: var(--ink-soft); max-width: 70ch; }

  /* ----- Aparición al hacer scroll ----- */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Cabecera, menú, pie y barra móvil
   ========================================================================== */
@layer sections {

  /* ----- Barra superior ----- */
  .topbar { background: var(--ink); color: #C3D0DA; font-size: .8rem; }
  .topbar__in { display: flex; align-items: center; gap: 1.5rem; min-height: 38px; }
  .topbar__promo { display: flex; align-items: center; gap: .55rem; margin-right: auto; }
  .topbar__promo strong { color: var(--white); font-weight: 600; }
  .topbar__promo .plate { --s: 18px; font-size: 11px; }
  .topbar__status { display: flex; align-items: center; gap: .5rem; }
  .topbar__tel { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--brand); }
  .topbar__tel:hover { color: var(--white); }
  .topbar__tel .i { width: 14px; height: 14px; }

  /* ----- Cabecera ----- */
  .hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
  .hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 28, 38, .4); }
  .hdr__in { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
  .brand { display: block; flex: none; }
  .brand__logo { height: 40px; width: auto; }
  .nav { display: none; gap: .25rem; margin-left: auto; }
  .nav a { position: relative; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-2); transition: color .15s, background-color .15s; }
  .nav a:hover { color: var(--ink); background: var(--paper-2); }
  .nav a[aria-current] { color: var(--ink); font-weight: 600; }
  .nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); translate: -50% 0; }
  .hdr__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
  .hdr__area { display: none; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: .5rem .75rem; border-radius: 999px; }
  .hdr__area:hover { background: var(--paper-2); color: var(--ink); }
  .hdr__cta { display: none; }
  .hdr__menu {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .5rem 1rem;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .95rem;
  }
  @media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
  @media (min-width: 1040px) { .nav { display: flex; } .hdr__actions { margin-left: 0; } .hdr__menu { display: none; } }
  @media (min-width: 1200px) { .hdr__area { display: inline-flex; } }

  /* ----- Menú móvil (Popover API) ----- */
  .menu {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 1.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    border: 0; background: var(--ink); color: var(--white);
    display: none; grid-template-rows: auto 1fr auto; gap: 1.5rem; overflow-y: auto;
  }
  .menu:popover-open, .menu.is-open { display: grid; }
  .menu::backdrop { background: rgba(15, 28, 38, .5); }
  .menu__top { display: flex; align-items: center; justify-content: space-between; }
  .menu__logo { height: 40px; width: auto; }
  .menu__close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: var(--white); }
  .menu__close .i { width: 22px; height: 22px; }
  .menu__nav { display: grid; align-content: center; gap: .1rem; }
  .menu__nav a { display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; text-decoration: none; font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu__nav a small { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--brand); min-width: 1.5rem; }
  .menu__nav a:hover { color: var(--brand); }
  .menu__foot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
  .menu__addr { flex-basis: 100%; font-size: .85rem; color: #8FA3B1; }
  .menu { transition: opacity .25s, transform .25s var(--ease), display .25s allow-discrete, overlay .25s allow-discrete; }
  @starting-style { .menu:popover-open { opacity: 0; transform: translateY(-10px); } }

  /* ----- Pie ----- */
  .ftr { background: var(--ink); color: #A9B8C4; padding-top: clamp(3.5rem, 7vw, 5rem); }
  .ftr__grid { display: grid; gap: 2.25rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; max-width: 400px; }
  .ftr__logo { height: 48px; width: auto; margin-bottom: 1.1rem; }
  .ftr__brand p, .ftr__col p { font-size: .95rem; }
  .ftr__h { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: .9rem; }
  .ftr__col p + p { margin-top: .6rem; }
  .ftr__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--brand); }
  .ftr__link:hover { color: var(--white); }
  .ftr__list { display: grid; gap: .5rem; font-size: .95rem; }
  .ftr__list a { text-decoration: none; color: #DCE5EB; }
  .ftr__list a:hover { color: var(--brand); }
  .ftr__list span { color: #6F8291; font-size: .82rem; }
  .ftr__status { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
  .ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #6F8291; }
  .ftr__legal ul { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; }
  .ftr__legal a { text-decoration: none; color: #8FA3B1; }
  .ftr__legal a:hover { color: var(--white); }
  @media (min-width: 900px) { .ftr__brand { grid-column: auto; } .ftr__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }

  /* ----- Barra de acciones (móvil) ----- */
  .dock {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .35rem; padding: .4rem;
    background: rgba(15, 28, 38, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; box-shadow: 0 16px 40px -12px rgba(15, 28, 38, .5);
  }
  .dock__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 50px; color: #DCE5EB; text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: 14px; }
  .dock__btn .i { width: 21px; height: 21px; }
  .dock__btn--main { background: var(--brand); color: var(--ink); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  @media (min-width: 900px) { .dock { display: none; } body { padding-bottom: 0; } }

  /* ==========================================================================
     Portada
     ========================================================================== */

  /* ----- Hero ----- */
  .hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden;
    background: radial-gradient(55% 60% at 88% 18%, rgba(0, 195, 239, .14), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(11, 127, 193, .06), transparent 70%); }
  .hero__grid { display: grid; gap: 3.5rem; align-items: center; }
  .hero__title { font-size: clamp(2.9rem, 11vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.032em; margin: 1.25rem 0 1.4rem; }
  .mark { color: var(--brand-deep); }
  .punct { margin-left: -.07em; }
  .hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 36ch; color: var(--ink-soft); }
  .hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
  .facts { display: flex; flex-wrap: wrap; gap: 1.25rem 0; margin-top: 2.75rem; }
  .facts li { display: grid; gap: .2rem; padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid var(--line-2); }
  .facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
  .facts strong { font-size: 2rem; font-weight: 800; letter-spacing: -.028em; line-height: 1; color: var(--ink); }
  .facts span { font-size: .88rem; color: var(--ink-soft); }
  @media (max-width: 479px) { .facts { flex-wrap: nowrap; } .facts li { padding-right: 1rem; margin-right: 1rem; } .facts strong { font-size: 1.6rem; } .facts span { font-size: .8rem; } }

  .hero__visual { position: relative; max-width: 460px; width: 100%; justify-self: center; }
  .hero__photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--paper-2); }
  .hero__photo img { width: 100%; height: 100%; object-fit: cover; }
  .float {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1rem .8rem .8rem; background: rgba(255, 255, 255, .95); border-radius: 18px;
    box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .float strong { display: block; font-size: .98rem; color: var(--ink); line-height: 1.2; }
  .float small { display: block; font-size: .82rem; color: var(--ink-soft); }
  .float__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); flex: none; }
  .float__icon .i { stroke-width: 2.6; }
  .float--a { left: -14px; bottom: 28px; }
  .float--b { right: -14px; top: 28px; }
  .float--b .plate { --s: 40px; }
  @media (min-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); }
    .hero__title { font-size: clamp(3.6rem, 6.4vw, 5.6rem); }
    .hero__visual { justify-self: end; }
    .float--a { left: -44px; }
    .float--b { right: -28px; }
  }

  /* ----- Banda de ventajas ----- */
  .ticker { background: var(--white); border-block: 1px solid var(--line); overflow: hidden; }
  .ticker__track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
  .ticker__item { font-weight: 600; font-size: 1.02rem; color: var(--ink-2); white-space: nowrap; padding: 1.05rem 1.5rem; }
  .ticker__sep.plate { --s: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: none; font-size: 0; color: transparent; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* ----- Cabecera de sección ----- */
  .section__head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
  .section__num { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
  .section__num span { color: var(--ink-soft); font-weight: 600; }
  .section__num span::before { content: "·"; margin-right: .55rem; color: var(--ink-faint); }
  .section--ink .section__num { color: var(--brand); }
  .section--ink .section__num span { color: #8FA3B1; }
  .section__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 750; line-height: 1.06; letter-spacing: -.028em; }
  .section--ink .section__title { color: var(--white); }
  .section__intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
  .section--ink .section__intro { color: #A9B8C4; }
  .section__intro a { color: inherit; font-weight: 600; }
  @media (min-width: 900px) { .section__head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; } }

  /* ----- 01 · Carnets ----- */
  .duo { display: grid; gap: 1.25rem; }
  .duo__card {
    position: relative; display: flex; flex-direction: column; gap: 1.1rem;
    padding: clamp(1.6rem, 3.4vw, 2.5rem);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  }
  .duo__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .duo__card--auto { background: var(--ink); border-color: var(--ink); color: #C9D5DE; }
  .duo__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; min-height: 96px; }
  .duo__kicker { font-size: .78rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
  .duo__card--auto .duo__kicker { background: rgba(255, 255, 255, .08); color: #DCE5EB; }
  .duo__title { font-size: clamp(2.2rem, 4.4vw, 3.1rem); font-weight: 750; letter-spacing: -.028em; line-height: 1; }
  .duo__card--auto .duo__title { color: var(--white); }
  .duo__text { font-size: 1.05rem; max-width: 40ch; }
  .duo__link {
    display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1.1rem;
    border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink);
  }
  .duo__card--auto .duo__link { border-top-color: rgba(255, 255, 255, .1); color: var(--white); }
  .duo__link .i { width: 1.3rem; height: 1.3rem; transition: transform .2s var(--ease); }
  .duo__link:hover { color: var(--brand-ink); }
  .duo__card--auto .duo__link:hover { color: var(--brand); }
  .duo__link:hover .i { transform: translateX(5px); }
  .duo__icon { width: 96px; height: 96px; flex: none; }
  .gearbox path { fill: none; stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
  .gearbox circle { fill: var(--white); stroke: var(--line-2); stroke-width: 2; }
  .gearbox text { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-anchor: middle; dominant-baseline: central; fill: var(--ink-2); }
  .gearbox .gearbox__knob { fill: var(--brand); stroke: none; transition: transform .5s var(--ease); }
  .duo__card--manual:hover .gearbox__knob { transform: translate(0, -30px); }
  .prnd { display: flex; align-items: center; gap: .1rem; width: auto; height: auto; padding: .25rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1; color: #6F8291; }
  .prnd span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
  .prnd .is-on { color: var(--ink); background: var(--brand); }
  @media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

  /* ----- 02 · El proceso ----- */
  .route { position: relative; display: grid; gap: 2rem; padding-left: 60px; }
  .route::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); border-radius: 2px; }
  .route__stop { position: relative; }
  .route__marker {
    position: absolute; left: -60px; top: -.15rem;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--white); border: 1px solid var(--line-2); color: var(--brand-deep);
    font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-xs);
  }
  .route__marker--goal { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }
  .route__marker--goal .i { stroke-width: 3; }
  .route__title { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
  .route__stop--goal .route__title { color: var(--brand-deep); }
  .route__text { color: var(--ink-soft); max-width: 32ch; font-size: .98rem; }
  @supports (animation-timeline: view()) {
    .route::after { content: ""; position: absolute; left: 19px; top: 10px; width: 2px; height: calc(100% - 20px); background: var(--brand); border-radius: 2px; transform-origin: top; animation: route-grow-v linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
  }
  @keyframes route-grow-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @media (min-width: 1000px) {
    .route { grid-template-columns: repeat(5, 1fr); gap: 2rem; padding-left: 0; padding-top: 72px; }
    .route::before, .route::after { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; }
    .route::after { width: calc(100% - 40px); transform-origin: left; animation-name: route-grow-h; }
    .route__marker { left: 0; top: -72px; }
  }
  @keyframes route-grow-h { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* ----- 03 · Precio ----- */
  .price { display: grid; gap: 3.5rem; align-items: center; }
  .price__copy .section__num { margin-bottom: 1.1rem; }
  .price__copy .section__title { margin-bottom: 1.1rem; }
  .price__copy .section__intro { margin-bottom: 2rem; }
  @media (min-width: 900px) { .price { grid-template-columns: 1.1fr .9fr; gap: 5rem; } }

  /* ----- 04 · Test rápido ----- */
  .exam { display: grid; gap: 3rem; align-items: start; }
  .exam__intro .section__num { margin-bottom: 1.1rem; }
  .exam__intro .section__title { margin-bottom: 1.1rem; }
  .exam__facts { display: grid; gap: .65rem; margin-top: 2rem; font-size: .95rem; color: #C9D5DE; }
  .exam__facts li { display: flex; align-items: center; gap: .65rem; }
  .exam__facts .i { color: var(--brand); stroke-width: 2.6; }
  .exam__app { min-height: 420px; }
  .exam__noscript { padding: 2rem; border: 1px dashed rgba(255, 255, 255, .3); border-radius: var(--radius); }
  @media (min-width: 960px) { .exam { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; } .exam__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }

  .quiz { background: var(--white); color: var(--ink-2); border-radius: var(--radius-xl); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); overflow: hidden; }
  .quiz__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
  .quiz__steps { display: flex; gap: 5px; }
  .quiz__steps span { width: 22px; height: 6px; border-radius: 999px; background: var(--line); }
  .quiz__steps .is-ok { background: var(--brand-deep); }
  .quiz__steps .is-ko { background: var(--red); }
  .quiz__steps .is-now { background: var(--brand); }
  .quiz__body { padding: clamp(1.4rem, 3vw, 2.1rem); }
  .quiz__q { font-weight: 650; font-size: clamp(1.18rem, 1.9vw, 1.4rem); line-height: 1.35; letter-spacing: -.015em; margin-bottom: 1.5rem; color: var(--ink); }
  .quiz__opts { display: grid; gap: .6rem; }
  .quiz__opt {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; width: 100%;
    padding: .75rem 1rem; text-align: left; font-size: 1.02rem; font-weight: 500; line-height: 1.35; color: var(--ink);
    background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
  }
  .quiz__opt:not([disabled]):hover { border-color: var(--brand); background: #F7FDFF; box-shadow: var(--ring); }
  .quiz__letter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: .95rem; flex: none; }
  .quiz__opt .i { width: 1.3rem; height: 1.3rem; opacity: 0; stroke-width: 2.6; }
  .quiz__opt[disabled] { cursor: default; }
  .quiz__opt.is-correct { background: var(--brand-soft); border-color: var(--brand-deep); }
  .quiz__opt.is-correct .quiz__letter { background: var(--brand-deep); color: var(--white); }
  .quiz__opt.is-correct .i { opacity: 1; color: var(--brand-deep); }
  .quiz__opt.is-wrong { background: var(--red-soft); border-color: #F2B8B2; color: #8A1B12; }
  .quiz__opt.is-wrong .quiz__letter { background: var(--red); color: var(--white); }
  .quiz__opt.is-dim { opacity: .5; }
  .quiz__explain { margin-top: 1.25rem; padding: 1rem 1.15rem; background: var(--paper-2); border-radius: var(--radius); font-size: .98rem; color: var(--ink-2); animation: pop .35s var(--ease); }
  .quiz__explain strong { display: block; font-size: 1.02rem; color: var(--ink); margin-bottom: .2rem; }
  .quiz__foot { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
  .quiz__result { text-align: center; padding: clamp(2rem, 5vw, 3rem) clamp(1.4rem, 3vw, 2.2rem); }
  .quiz__score { font-weight: 800; font-size: clamp(4rem, 11vw, 6rem); letter-spacing: -.035em; line-height: 1; color: var(--ink); }
  .quiz__score small { font-size: .4em; color: var(--ink-faint); letter-spacing: -.02em; }
  .quiz__verdict { font-weight: 750; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; color: var(--ink); margin: .9rem 0 .5rem; }
  .quiz__result p { color: var(--ink-soft); max-width: 38ch; margin-inline: auto; }
  .quiz__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
  .quiz__result .plate { margin: 0 auto 1rem; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } }

  /* ----- 05 · Aprobados ----- */
  .wall { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 320px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .wall::-webkit-scrollbar { display: none; }
  .wall__item { position: relative; scroll-snap-align: center; border-radius: var(--radius-xl); overflow: hidden; background: var(--paper-2); }
  .wall__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); }
  .wall__item:hover img { transform: scale(1.03); }
  .wall__item figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: .88rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-xs); }
  .wall__item figcaption .i { color: var(--brand-deep); stroke-width: 2.8; }
  .wall__you { display: grid; place-items: center; align-content: center; gap: 1rem; aspect-ratio: 3 / 4; height: 100%; border: 1.5px dashed var(--line-2); border-radius: var(--radius-xl); background: var(--white); text-align: center; padding: 1.5rem; text-decoration: none; transition: border-color .2s, background-color .2s; }
  .wall__you:hover { border-color: var(--brand); background: #F7FDFF; }
  .wall__you strong { font-weight: 750; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
  .wall__you span:last-child { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .95rem; color: var(--brand-ink); }
  .wall__item:has(.wall__you) { background: transparent; overflow: visible; }
  .wall__item:has(.wall__you) figcaption { display: none; }
  @media (min-width: 820px) { .wall { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }

  /* ----- 06 · Por qué ----- */
  .why { display: grid; gap: 3rem; align-items: start; }
  .why__photo { position: relative; }
  .why__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
  .why__photo .tag { position: absolute; left: 1rem; bottom: 1rem; }
  .why__body .section__num { margin-bottom: 1.1rem; }
  .why__list { display: grid; margin-top: 2.25rem; border-top: 1px solid var(--line); }
  .why__list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
  .why__n { font-weight: 700; font-size: .9rem; color: var(--brand-deep); padding-top: .2rem; }
  .why__list h3 { font-size: 1.2rem; margin-bottom: .35rem; }
  .why__list p { color: var(--ink-soft); }
  @media (min-width: 960px) { .why { grid-template-columns: .95fr 1.05fr; gap: 5rem; } .why__photo { position: sticky; top: calc(var(--header-h) + 2rem); } }

  /* ----- 07 · FAQ ----- */
  .faq { display: grid; gap: 2.5rem; }
  .faq__head .section__num { margin-bottom: 1.1rem; }
  .faq__head .section__title { margin-bottom: 1.1rem; }
  @media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 5rem; } .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

  /* ----- CTA final ----- */
  .go { padding: var(--section-y) 0; }
  .go .wrap.go__grid {
    display: grid; gap: 2.5rem 4rem; align-items: start;
    max-width: var(--wrap); width: calc(100% - var(--gutter) * 2); padding: clamp(1.75rem, 5vw, 4rem);
    background: radial-gradient(60% 80% at 100% 0%, rgba(0, 195, 239, .22), transparent 60%), var(--ink);
    border-radius: var(--radius-xl); color: #C9D5DE;
  }
  .go__title { grid-column: 1 / -1; font-size: clamp(2.6rem, 7.5vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -.032em; color: var(--white); hyphens: manual; }
  .go__lead { font-size: 1.15rem; max-width: 40ch; }
  .go__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
  .go .btn--ink { background: var(--brand); color: var(--ink); }
  .go .btn--ink:hover { background: var(--brand-2); }
  .go .btn--line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .25); }
  .go .btn--line:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
  .go__phones { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin-top: 2.25rem; }
  .go__phones li { display: grid; }
  .go__phones a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; line-height: 1; text-decoration: none; color: var(--white); }
  .go__phones a:hover { color: var(--brand); }
  .go__phones .i { width: .8em; height: .8em; color: var(--brand); }
  .go__phones span { font-size: .8rem; margin-top: .35rem; color: #8FA3B1; }
  .visit { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink-2); }
  .visit__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 1.2rem; }
  .visit__addr { display: flex; gap: .7rem; font-weight: 600; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
  .visit__addr .i { width: 1.3rem; height: 1.3rem; margin-top: .1rem; color: var(--brand-deep); }
  @media (min-width: 960px) { .go .wrap.go__grid { grid-template-columns: 1.1fr .9fr; } }

  /* ==========================================================================
     Páginas interiores
     ========================================================================== */
  .phero { position: relative; padding-block: clamp(2.75rem, 6vw, 4.5rem); background: radial-gradient(50% 90% at 90% 0%, rgba(0, 195, 239, .12), transparent 70%), var(--paper-2); border-bottom: 1px solid var(--line); }
  .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--ink-soft); }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; }
  .crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-faint); }
  .phero__grid { display: grid; gap: 1.5rem 3rem; align-items: end; }
  .phero__title { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.032em; margin-top: 1rem; }
  .phero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 44ch; }
  @media (min-width: 960px) { .phero__grid { grid-template-columns: 1.3fr .9fr; } }

  /* ----- Servicios ----- */
  .svc { border-top: 1px solid var(--line); }
  .svc__row { display: grid; gap: .8rem 2rem; padding: 1.9rem 0; border-bottom: 1px solid var(--line); }
  .svc__n { font-size: .85rem; font-weight: 700; color: var(--brand-deep); }
  .svc__kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: .35rem; }
  .svc__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; }
  .svc__text { color: var(--ink-soft); }
  .svc__items { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
  .svc__items li { font-size: .82rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
  .svc__price { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
  .svc__price a { display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; font-weight: 600; margin-top: .6rem; text-decoration: none; color: var(--brand-ink); }
  .svc__price a:hover { text-decoration: underline; }
  @media (min-width: 900px) {
    .svc__row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1.2fr) 160px; align-items: start; padding: 2.2rem .5rem; }
    .svc__price { text-align: right; }
  }

  .compare-wrap { overflow-x: auto; }
  .compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
  .compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  .compare thead th { background: var(--paper-2); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
  .compare thead th:last-child { color: var(--brand-deep); }
  .compare tbody th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-faint); width: 28%; }
  .compare tbody tr:last-child > * { border-bottom: 0; }

  /* ----- Nosotros ----- */
  .story { display: grid; gap: 3rem; align-items: center; }
  .story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
  .story__body p { font-size: 1.1rem; color: var(--ink-soft); }
  .story__body p + p { margin-top: 1rem; }
  .story__body .section__title { margin: 1.1rem 0 1.4rem; }
  @media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; gap: 5rem; } }

  .values { display: grid; gap: 1.25rem; }
  .value { padding: 1.75rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); }
  .value__n { font-weight: 700; font-size: .9rem; color: var(--brand); }
  .value h3 { font-size: 1.3rem; color: var(--white); margin: .9rem 0 .5rem; }
  .value p { color: #A9B8C4; }
  @media (min-width: 820px) { .values { grid-template-columns: repeat(3, 1fr); } }

  .gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .gallery__item { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); cursor: zoom-in; }
  .gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .6s var(--ease); }
  .gallery__item:hover img { transform: scale(1.04); }
  .gallery__item span { position: absolute; left: .75rem; bottom: .75rem; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
  .gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; transform: none; }
  @media (hover: none) { .gallery__item span { opacity: 1; transform: none; } }
  @media (min-width: 820px) {
    .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
    .gallery__item img { aspect-ratio: auto; }
    .gallery__item--wide { grid-column: span 2; }
    .gallery__item--tall { grid-row: span 2; }
  }
  .lightbox { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); overflow: hidden; box-shadow: var(--shadow-lg); }
  .lightbox::backdrop { background: rgba(15, 28, 38, .85); backdrop-filter: blur(4px); }
  .lightbox img { width: 100%; max-height: calc(92vh - 64px); object-fit: contain; background: #000; }
  .lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .6rem .6rem 1.1rem; font-size: .88rem; color: #C9D5DE; }
  .lightbox__nav { display: flex; gap: .4rem; }
  .lightbox__nav button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
  .lightbox__nav button:hover { background: var(--brand); color: var(--ink); }

  /* ----- Contacto ----- */
  .contact { display: grid; gap: 2.5rem; align-items: start; }
  .formcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
  .formcard__title { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -.035em; }
  .formcard__intro { color: var(--ink-soft); margin: .5rem 0 1.75rem; }
  .form { display: grid; gap: 1.2rem; }
  .form__row { display: grid; gap: 1.2rem; }
  .form legend { margin-bottom: .55rem; }
  @media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
  .sent { text-align: center; padding: 1.5rem .5rem; }
  .sent .plate { margin: 0 auto 1.25rem; }
  .sent h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.028em; }
  .sent p { color: var(--ink-soft); max-width: 40ch; margin: 1rem auto 0; }
  .sent .btn { margin-top: 1.75rem; }

  .quick { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .quick a, .quick div { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
  .quick a:last-child { border-bottom: 0; }
  .quick a:hover { background: var(--paper-2); }
  .quick__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); }
  .quick__icon .i { width: 20px; height: 20px; }
  .quick small { display: block; font-size: .8rem; color: var(--ink-faint); }
  .quick strong { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.25rem); letter-spacing: -.02em; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
  .quick strong.is-email { font-size: 1.02rem; letter-spacing: 0; }
  .quick .i-go { width: 1.2rem; height: 1.2rem; color: var(--ink-faint); }
  .side { display: grid; gap: 1.5rem; }
  .side .visit { box-shadow: var(--shadow); border: 1px solid var(--line); }
  @media (min-width: 1000px) { .contact { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; } .side { position: sticky; top: calc(var(--header-h) + 2rem); } }

  /* ----- Legal ----- */
  .prose { max-width: 72ch; }
  .prose h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
  .prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
  .prose p, .prose li { color: var(--ink-soft); }
  .prose p + p { margin-top: .9rem; }
  .prose ul { padding-left: 1.2rem; margin: .75rem 0; display: grid; gap: .35rem; }
  .prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
  .prose th, .prose td { border-bottom: 1px solid var(--line); padding: .7rem .6rem; text-align: left; vertical-align: top; }
  .prose th { color: var(--ink); font-weight: 600; }
  .prose thead th { background: var(--paper-2); }

  /* ----- Error ----- */
  .err { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
  .err__sign { width: clamp(160px, 26vw, 240px); aspect-ratio: 1; margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(11, 127, 193, .3)); }
  .err__sign svg { width: 100%; height: auto; }
  .err__code { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--brand-ink); }
  .err h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.02; margin: .75rem 0 1rem; }
  .err p { font-size: 1.1rem; color: var(--ink-soft); max-width: 40ch; }
  .err .hero__cta { margin-top: 1.75rem; }
  @media (min-width: 800px) { .err { grid-template-columns: auto 1fr; gap: 4rem; } }
}

/* ---------- Utilidades ---------- */
@layer utilities {
  .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; }
  @media (max-width: 639px) { .hide-sm { display: none !important; } }
  .mt-0 { margin-top: 0 !important; }
  .center { text-align: center; }
}

/* ---------- Transiciones entre páginas (View Transitions API) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .3s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.hdr { view-transition-name: header; }
.topbar { view-transition-name: topbar; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .route::after { display: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .topbar, .hdr, .dock, .ticker, .map, .menu { display: none !important; }
  body { background: #fff; padding: 0; }
  .section--ink, .go .wrap.go__grid, .ftr { background: #fff !important; color: #000 !important; }
}
