/* =========================================================================
   Tactical View — Distribuidor Autorizado Getnet
   Sistema de diseño derivado de:
   · Logo Tactical View (teal #0D9890)
   · Manual de marca Getnet (rojo #EC0000, grafito #6F7779, sky #DEEDF2)
   · Manual de ISOS 2026 (reglas del badge)
   · Las creatividades de campaña (navy #0B1B33, teal profundo #00788C)
   Contrastes verificados contra WCAG 2.1 AA.
   ========================================================================= */

:root {
  /* --- Tactical View --- */
  --teal:         #0D9890;   /* superficie / íconos / bordes — 3.55:1 NO usar en texto */
  --teal-deep:    #00788C;   /* texto y enlaces — 5.17:1 AA  (el de las creatividades) */
  --teal-dark:    #0A5F5A;   /* énfasis — 7.51:1 AAA */
  --teal-soft:    #E6F4F3;
  --teal-softer:  #F2FAF9;

  /* --- Getnet (no alterar) --- */
  --red:          #EC0000;   /* CTA primario — blanco encima 4.60:1 AA */
  --red-dark:     #C40000;
  --graphite:     #6F7779;   /* texto secundario — 4.57:1 AA */
  --sky:          #DEEDF2;

  /* --- Neutros --- */
  --navy:         #0B1B33;   /* titulares y texto — 17.23:1 AAA */
  --navy-soft:    #16294a;
  --ink:          #1A2433;
  --muted:        #5A6572;
  --line:         #E3E8EE;
  --surface:      #FFFFFF;
  --surface-alt:  #F7F9FB;

  --radius:       14px;
  --radius-lg:    22px;
  --radius-pill:  999px;
  --shadow-sm:    0 1px 2px rgba(11,27,51,.06), 0 2px 8px rgba(11,27,51,.05);
  --shadow:       0 4px 12px rgba(11,27,51,.07), 0 12px 32px rgba(11,27,51,.08);
  --shadow-lg:    0 8px 24px rgba(11,27,51,.10), 0 24px 64px rgba(11,27,51,.12);
  --maxw:         1180px;
  --font: "Santander Micro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  /* Santander Micro Text es la tipografía que el Manual de marca Getnet prescribe
     para online. Es propietaria: si Getnet entrega la licencia y los .woff2,
     se declara con @font-face y el stack la toma automáticamente. */
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface-alt); }
.section--soft { background: linear-gradient(180deg, var(--teal-softer), #fff); }
.center { text-align: center; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-deep); margin-bottom: .7rem;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: 16px 30px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-align: center;
}
/* Botón principal en rojo Getnet: contrasta con el teal del sitio */
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(236,0,0,.28); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(236,0,0,.34); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #08301a; }
.btn--wa:hover { background: #1fb857; transform: translateY(-2px); }
.btn--lg { padding: 19px 38px; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------- barra superior */
.topbar {
  background: var(--navy); color: #C9D4E2; font-size: .84rem;
  padding: 8px 0;
}
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 10px 26px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__badge { display: inline-flex; align-items: center; gap: 8px; }
.topbar__badge img { width: 22px; height: 22px; }

/* --------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.header__logo { flex: 0 0 auto; }
.header__logo img { width: 196px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover { color: var(--teal-deep); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn { padding: 12px 22px; font-size: .95rem; }
.burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(13,152,144,.13), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--teal-softer) 100%);
  padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 88px);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--teal-deep); }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero__note { font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }

/* Tasa de mercado tachada junto a la nuestra */
.rate {
  display: inline-flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow-sm); margin-bottom: 8px;
}
.rate__old { color: var(--graphite); font-size: .95rem; }
.rate__old s { text-decoration-thickness: 2px; }
.rate__new { display: flex; align-items: baseline; gap: 8px; }
.rate__num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--red); line-height: .95; letter-spacing: -.03em; }
.rate__lbl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }

.hero__visual { position: relative; }
.hero__visual img { margin-inline: auto; filter: drop-shadow(0 26px 44px rgba(11,27,51,.22)); }
.hero__badge {
  position: absolute; top: 4px; right: 4px; width: clamp(84px, 11vw, 116px);
  /* Manual de ISOS: zona de seguridad 2X. El padding la reserva. */
  padding: calc(clamp(84px, 11vw, 116px) / 6);
}
.hero__badge img { width: 100%; }

/* Señales de confianza */
.trust { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--graphite); font-weight: 700; margin-bottom: 10px; }
.brands { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brands span { font-weight: 800; color: var(--graphite); font-size: .95rem; letter-spacing: .02em; }

/* ---------------------------------------------------------------- giros */
.giros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.giro {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.giro:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.giro img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.giro__body { padding: 16px 18px 18px; }
.giro__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.giro__meta { font-size: .85rem; color: var(--muted); }
.giro__go { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--teal-deep); }
.giro img { cursor: zoom-in; }

/* ------------------------------------------------ vista ampliada del giro */
/* <dialog> nativo: showModal() lo pone en la capa superior, vuelve inerte el
   resto de la página, atrapa el foco y cierra con Esc. Aquí solo se le quita
   el marco por defecto; la caja visible es .lightbox__panel. */
.lightbox {
  padding: 52px 0 0; border: 0; background: transparent; overflow: visible;
  width: fit-content; height: fit-content; max-width: none; max-height: none;
  margin: auto;
}
.lightbox::backdrop { background: rgba(7, 18, 35, .74); backdrop-filter: blur(3px); }
.lightbox__panel {
  position: relative; display: flex; flex-direction: column;
  width: fit-content; max-width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.lightbox__media { background: var(--surface-alt); }
/* La imagen manda en el ancho del panel: se ve completa (sin el recorte
   cuadrado de la tarjeta) y deja sitio abajo para el título y el botón. */
.lightbox__img {
  display: block; width: auto; height: auto; max-width: 100%; margin-inline: auto;
  max-height: max(200px, calc(100vh - 322px));
  max-height: max(200px, calc(100dvh - 322px));
}
.lightbox__body { padding: 18px 24px 24px; }
.lightbox__title { font-size: 1.25rem; margin: 0 0 .2em; }
.lightbox__meta { color: var(--muted); font-size: .96rem; margin: 0 0 18px; }
/* La X vive en la franja superior del <dialog>, sobre el fondo oscuro y fuera
   de la imagen: el Manual de ISOS pide que el badge "Distribuidor Autorizado"
   de las creatividades quede libre de otros elementos. */
.lightbox__close {
  position: absolute; top: 0; right: 0; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .28); transform: scale(1.06); }
.lightbox__close:focus-visible { outline-color: #fff; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox[open] .lightbox__panel { animation: lb-in .24s ease-out; }
.lightbox[open]::backdrop { animation: lb-fade .24s ease-out; }
@keyframes lb-in   { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open]::backdrop, .lightbox[open] .lightbox__panel { animation: none; }
}
/* Mientras está abierto, la página de atrás no se desplaza. scrollbar-gutter
   evita que el contenido brinque cuando desaparece la barra de scroll. */
html { scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }

/* ------------------------------------------------------------ beneficios */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 16px;
}
.ico svg { width: 25px; height: 25px; stroke-width: 2; }

/* --------------------------------------------------------------- formulario */
.field { margin-bottom: 20px; }
.field > label, .field__legend {
  display: block; font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 8px;
}
.field__hint { font-weight: 400; color: var(--muted); font-size: .84rem; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(0,120,140,.13); }
.input[aria-invalid="true"] { border-color: var(--red); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235A6572' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ------------------------------------------------------------- objeciones */
.objs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.obj { display: flex; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.obj__tick { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; }
.obj__tick svg { width: 15px; height: 15px; stroke-width: 3; }
.obj h3 { font-size: 1.02rem; margin-bottom: .2em; }
.obj p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ----------------------------------------------------------- costos */
.costs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 38px; }
.cost { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.cost__tag { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); display: inline-block; margin-bottom: 12px; }
.cost__tag--in { background: var(--teal-soft); color: var(--teal-dark); }
.cost__tag--mo { background: var(--sky); color: #1B4A66; }
.cost__tag--if { background: #FFF1E8; color: #9A4A12; }
.cost h3 { font-size: 1.06rem; }
.cost p { margin: 0; color: var(--muted); font-size: .93rem; }
.note {
  margin-top: 28px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 22px 26px;
}
.note p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- terminal */
.term__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.term__img { background: linear-gradient(160deg, var(--sky), #fff); border-radius: var(--radius-lg); padding: 30px; }
.specs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.specs li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.specs svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--teal-deep); margin-top: 3px; stroke-width: 2.5; }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 830px; margin: 40px auto 0; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 11px; overflow: hidden; }
.qa summary {
  cursor: pointer; padding: 20px 54px 20px 24px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; font-size: 1.01rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--teal-deep); border-bottom: 2.5px solid var(--teal-deep);
  transform: translateY(-65%) rotate(45deg); transition: transform .2s ease;
}
.qa[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa__body { padding: 0 24px 22px; color: var(--muted); font-size: .97rem; }
.qa__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- contacto */
.contact { background: linear-gradient(165deg, var(--navy) 0%, #12365a 100%); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #C2D3E4; }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact__aside ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__aside li { display: flex; gap: 13px; align-items: flex-start; }
.contact__aside svg { flex: 0 0 auto; width: 21px; height: 21px; color: #7FD8D2; margin-top: 3px; stroke-width: 2; }
.contact__aside b { display: block; color: #fff; }
.contact__aside span { color: #B9CADC; font-size: .93rem; }
.contact__badge { margin-top: 30px; display: inline-block; padding: 14px; background: rgba(255,255,255,.07); border-radius: var(--radius); }
.contact__badge img { width: 92px; }

.formcard { scroll-margin-top: 12px; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--shadow-lg); }
.formcard h3 { font-size: 1.32rem; margin-bottom: .25em; }
.formcard > p { color: var(--muted); font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
/* Etiqueta, campo y mensaje de error van en filas compartidas por las dos
   columnas (subgrid): los campos quedan alineados aunque una etiqueta ocupe dos
   líneas o aparezca un error en la columna de al lado. Sin subgrid, cada campo
   simplemente se apila. */
.grid2 > .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.grid2 > .field > label { min-height: 2.6em; display: flex; align-items: flex-end; }
@media (max-width: 640px) { .grid2 > .field > label { min-height: 0; } }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.consent input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--teal-deep); }
.err { display: block; color: var(--red); font-size: .83rem; font-weight: 600; margin-top: 6px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formcard__foot { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.formstate { border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.formstate--ok { background: #E8F7EF; color: #12603A; border: 1px solid #B6E3CC; }
.formstate--bad { background: #FDECEC; color: #971010; border: 1px solid #F5C4C4; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- footer */
.footer { background: #071223; color: #9FB0C4; font-size: .92rem; padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer img.footer__logo { width: 210px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: #9FB0C4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #7B8CA0;
}
.footer__disc { margin-top: 16px; font-size: .78rem; color: #6B7C90; line-height: 1.6; max-width: 90ch; }

/* --------------------------------------------------------- barra móvil */
.mobar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; box-shadow: 0 -4px 18px rgba(11,27,51,.09);
}
.mobar .btn { flex: 1; padding: 14px 12px; font-size: .95rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero__grid, .term__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 430px; margin-inline: auto; }
  .term__grid > div:first-child { order: -1; }
  .giros { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav--open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; box-shadow: var(--shadow);
  }
  .nav--open a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .header__cta .btn--ghost { display: none; }
  .header { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .giros { grid-template-columns: 1fr; }
  .lightbox__body { padding: 16px 18px 18px; }
  .lightbox__meta { margin-bottom: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .mobar { display: flex; }
  .header__cta { display: none; }
  .header__logo img { width: 158px; }
  .rate { width: 100%; }

  /* En móvil manda el mensaje, no la foto: el H1 tiene que verse sin scroll.
     La terminal baja y se achica para que quepan titular + ancla de precio. */
  .hero__visual { order: 0; max-width: 260px; }
  .hero__grid > div:first-child { order: -1; }
  .hero__badge { width: 62px; padding: 10px; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: clamp(1.95rem, 8.4vw, 2.5rem); }
  .hero__ctas { margin: 22px 0 14px; }
  .hero__ctas .btn { width: 100%; }

  /* La barra superior se queda en una línea */
  .topbar { font-size: .78rem; }
  .topbar__in > span:not(.topbar__badge) { display: none; }
  .topbar__in { gap: 6px 16px; }
}

/* ------------------------------------------------------------- animación */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .header, .topbar, .mobar, .hero__ctas, .footer { display: none; }
}

/* ------------------------------------------------------- páginas legales */
.legal { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal__meta { color: var(--muted); font-size: .92rem; margin-bottom: 2.4em; }
.legal__back { display: inline-block; margin-bottom: 2em; font-weight: 600; }
.warn {
  background: #FFF8E6; border: 1px solid #F3DFA8; border-left: 5px solid #E0A400;
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 2.4em; font-size: .93rem;
}
.warn p:last-child { margin-bottom: 0; }
.warn strong { color: #7A5400; }
