/* Colección Countryballs · mobile first */

:root {
  --cream: #FFF7E8;
  --sun: #FFEFC2;
  --mint: #DFF5EA;
  --paper: #FFFFFF;
  --ink: #1D2B53;
  --ink-soft: #4A557A;
  --red: #D9381E;
  --red-dark: #B02A14;
  --green: #12A36B;
  --yellow: #FFC531;
  --pink: #FFB3CB;
  --blue: #A9D3FF;

  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(56px, 9vw, 112px);
  --radius: 22px;
  --pop: 0 5px 0 var(--ink);

  --garland: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cpath d='M0 5h240' stroke='%231D2B53' stroke-width='2'/%3E%3Cg stroke='%231D2B53' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 5h30l-15 30z' fill='%2312A36B'/%3E%3Cpath d='M45 5h30l-15 30z' fill='%23FFC531'/%3E%3Cpath d='M85 5h30l-15 30z' fill='%23fff'/%3E%3Cpath d='M125 5h30l-15 30z' fill='%23D9381E'/%3E%3Cpath d='M165 5h30l-15 30z' fill='%23FFB3CB'/%3E%3Cpath d='M205 5h30l-15 30z' fill='%23A9D3FF'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 84px;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
s { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 5.2vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem); }
p { text-wrap: pretty; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: clamp(24px, 4vw, 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .8em 1.6em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.15; text-align: center;
  text-decoration: none; color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: var(--pop);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: var(--paper); }
.btn--sm { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; box-shadow: 0 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 0 5px 0 var(--ink); }
.btn--lg { min-height: 58px; padding: .85em 1.9em; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
.btn--block { display: flex; width: 100%; }

/* ---------- Barra superior y header ---------- */
.topbar {
  background: var(--ink); color: #fff; text-align: center;
  font-size: clamp(.8rem, .75rem + .25vw, .95rem); font-weight: 700;
  padding: 9px var(--gutter); line-height: 1.35;
}
.topbar strong { color: var(--yellow); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__ball { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 500; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); line-height: 1.05; }
.brand__name b { font-weight: 700; display: block; }
.brand--light { color: #fff; }
.header .btn--sm { white-space: nowrap; }
@media (max-width: 380px) { .header .btn--sm { padding-inline: .8em; font-size: .85rem; } .brand__name { font-size: .95rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,197,49,.28) 0 14%, transparent 15%),
    radial-gradient(circle at 92% 60%, rgba(18,163,107,.16) 0 18%, transparent 19%),
    var(--cream);
  padding-top: clamp(28px, 6vw, 72px);
  overflow: clip;
}
.hero__grid { display: grid; gap: clamp(32px, 6vw, 64px); padding-bottom: clamp(36px, 6vw, 64px); }
.hero__copy { display: grid; gap: clamp(16px, 2.5vw, 24px); justify-items: start; }
.badge {
  display: inline-block; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: .3em .95em; font-weight: 800; font-size: clamp(.82rem, .78rem + .25vw, .98rem); line-height: 1.3;
  box-shadow: 0 3px 0 var(--ink);
}
.hl { color: var(--red); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
  background: var(--yellow); z-index: -1; border-radius: 99px; transform: rotate(-1.2deg);
}
.hero h1 { position: relative; z-index: 0; }
.lead { font-size: clamp(1.05rem, 1rem + .6vw, 1.35rem); color: var(--ink-soft); max-width: 36em; font-weight: 600; }
.hero__cta { display: grid; gap: 14px; width: 100%; padding-bottom: 4px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; font-size: .95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--green)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Pila de hojas */
.stack { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1 / 1.12; }
.sheet {
  position: absolute; height: auto; background: #fff;
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 10px 0 rgba(29,43,83,.18), 0 18px 30px rgba(29,43,83,.18);
}
.sheet--c { width: 66%; left: 17%; top: 0; z-index: 3; transform: rotate(-1.5deg); }
.sheet--l { width: 50%; left: 0; bottom: 0; z-index: 1; transform: rotate(-9deg); }
.sheet--r { width: 50%; right: 0; bottom: 4%; z-index: 2; transform: rotate(8deg); }
.stack--duo { aspect-ratio: 1 / 1; width: min(100%, 420px); }
.stack--duo .sheet--c { width: 58%; left: auto; right: 4%; top: 0; transform: rotate(5deg); z-index: 2; }
.stack--duo .sheet--l { width: 58%; left: 4%; bottom: 0; transform: rotate(-6deg); z-index: 1; }

.sticker {
  position: absolute; z-index: 5; display: grid; place-content: center; text-align: center;
  width: clamp(76px, 22%, 104px); aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-head); line-height: 1;
}
.sticker b { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.sticker span { font-size: clamp(.7rem, .65rem + .2vw, .85rem); font-weight: 600; margin-top: 2px; }
.sticker--a { top: -2%; right: 0; transform: rotate(10deg); }
.sticker--b { bottom: 2%; left: 34%; background: var(--green); color: #fff; transform: rotate(-8deg); }
.floatball { position: absolute; z-index: 5; width: clamp(54px, 15%, 76px); left: -2%; top: 8%; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }

.garland { height: 44px; background: var(--garland) repeat-x center top / 240px 44px; }

/* ---------- Banderas ---------- */
.flags { background: var(--paper); border-block: 3px solid var(--ink); padding-block: 16px; overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 16px; width: max-content; animation: scroll 60s linear infinite; }
.marquee__track img { height: clamp(34px, 5vw, 48px); width: auto; border-radius: 6px; border: 2px solid var(--ink); background: #fff; }
@keyframes scroll { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Datos ---------- */
.facts { background: var(--ink); color: #fff; padding-block: clamp(22px, 4vw, 40px); }
.facts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; text-align: center; }
.facts__grid li { display: grid; gap: 2px; }
.facts__grid b { font-family: var(--font-head); font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); color: var(--yellow); line-height: 1; }
.facts__grid span { font-size: clamp(.85rem, .8rem + .25vw, 1rem); font-weight: 600; opacity: .9; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); background: var(--paper); }
.section--cream { background: var(--cream); }
.section--sun { background: var(--sun); }
.section--mint { background: var(--mint); }
.section--tight { padding-block: clamp(32px, 6vw, 72px); background: var(--cream); }
.section__head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 5vw, 56px); }
.section__lead { color: var(--ink-soft); font-weight: 600; font-size: clamp(1.02rem, .98rem + .4vw, 1.2rem); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-size: .85rem; color: var(--red);
}
.eyebrow--light { color: var(--yellow); }

/* Tarjetas de beneficios */
.cards { display: grid; gap: clamp(14px, 2.5vw, 24px); grid-template-columns: 1fr; }
.card {
  padding: clamp(20px, 3vw, 30px); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--pop); display: grid; gap: 10px; align-content: start;
}
.card p { font-weight: 600; color: var(--ink-soft); }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; margin-bottom: 4px;
}
.card--yellow { background: var(--sun); }
.card--green { background: var(--mint); }
.card--pink { background: #FFE3EC; }
.card--blue { background: #E1F0FF; }

/* ---------- Galería ---------- */
.container--rail { padding-inline: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68%, 270px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 22px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.rail > li { scroll-snap-align: start; }
.shot {
  display: block; width: 100%; padding: 0; margin: 0; background: transparent; border: 0; cursor: zoom-in; text-align: center;
  font: inherit; color: inherit;
}
.shot > img {
  width: 100%; aspect-ratio: 521 / 740; object-fit: cover; background: #fff;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--pop);
  transition: transform .18s ease;
}
.shot:hover > img { transform: translateY(-4px) rotate(-.6deg); }
.shot__cap {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.shot__cap img { width: 28px; height: auto; border-radius: 3px; border: 1.5px solid var(--ink); }
.swipe-hint { text-align: center; font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin-top: -4px; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: clamp(14px, 2.5vw, 24px); counter-reset: s; }
.step {
  position: relative; display: grid; gap: 6px; padding: 24px 22px 24px 92px;
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop);
}
.step p { font-weight: 600; color: var(--ink-soft); }
.step__n {
  position: absolute; left: 20px; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff;
  background: var(--green); border: 3px solid var(--ink); border-radius: 50%;
}
.step:nth-child(2) .step__n { background: var(--red); }
.step:nth-child(3) .step__n { background: var(--ink); }

/* ---------- Split (qué incluye) ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split__copy { display: grid; gap: clamp(16px, 2.5vw, 24px); justify-items: start; }
.checks { display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 40px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 2.5px solid var(--ink);
}
.checks b { font-weight: 800; }

/* ---------- Bonos ---------- */
.bonuses { display: grid; gap: clamp(16px, 3vw, 28px); }
.bonus {
  display: grid; gap: 10px; align-content: start; padding: clamp(18px, 3vw, 26px);
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop);
}
.bonus p { font-weight: 600; color: var(--ink-soft); }
.bonus__media {
  display: flex; align-items: center; justify-content: center; min-height: 150px; margin-bottom: 4px;
  background: #FFFDF9; border: 2.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 16px; padding: 12px;
}
.bonus__media img { height: auto; }
.bonus__media--passport img { width: 30%; max-width: 110px; }
.bonus__media--passport img:nth-child(2) { translate: 0 -8px; rotate: 6deg; }
.bonus__media--cards { gap: 8px; }
.bonus__media--cards img { width: 48%; border-radius: 10px; border: 2px solid var(--ink); }
.bonus__media--cards img:first-child { rotate: -4deg; }
.bonus__media--cards img:last-child { rotate: 4deg; }
.bonus__media--crests img { width: 31%; max-width: 110px; margin-inline: -3%; border-radius: 50%; }
.bonus__media--crests img:nth-child(2) { z-index: 1; scale: 1.15; }
.bonus__tag {
  justify-self: start; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: .1em .8em;
}
.bonus__price { font-size: .95rem; }
.bonus__price b { color: var(--green); font-weight: 800; margin-left: 6px; }

/* ---------- Oferta ---------- */
.offer {
  background: var(--ink); padding-block: var(--section-y); position: relative; overflow: clip;
  background-image: radial-gradient(circle at 10% 10%, rgba(255,197,49,.14) 0 16%, transparent 17%), radial-gradient(circle at 92% 88%, rgba(18,163,107,.22) 0 20%, transparent 21%);
}
.offer__card {
  position: relative; max-width: 560px; margin-inline: auto; text-align: center;
  background: #263668; border: 4px solid var(--yellow); border-radius: calc(var(--radius) + 6px);
  padding: clamp(56px, 8vw, 72px) clamp(20px, 5vw, 44px) clamp(24px, 4vw, 40px);
  box-shadow: 0 10px 0 rgba(0,0,0,.35);
  display: grid; gap: 14px; justify-items: center;
  color: #fff;
}
.offer__ball { position: absolute; top: -44px; left: 50%; translate: -50% 0; width: 88px; height: 88px; animation: bob 3.6s ease-in-out infinite; }
.offer__card h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.5rem); }
.offer__list { display: grid; gap: 8px; text-align: left; margin: 6px 0 4px; font-weight: 700; }
.offer__list li { position: relative; padding-left: 34px; }
.offer__list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231D2B53' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.price { display: grid; justify-items: center; gap: 0; margin-block: 8px; }
.price__old { font-size: 1.15rem; font-weight: 700; opacity: .75; }
.price__now { display: flex; align-items: flex-start; justify-content: center; gap: 4px; font-family: var(--font-head); font-weight: 700; color: var(--yellow); line-height: 1; }
.price__cur { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin-top: .35em; }
.price__num { font-size: clamp(4.2rem, 3rem + 6vw, 6.5rem); }
.price__mxn { font-size: clamp(1rem, .9rem + .5vw, 1.3rem); align-self: flex-end; margin-bottom: .5em; color: #fff; }
.price__note { font-weight: 700; font-size: .95rem; opacity: .9; margin-top: 6px; }
.offer__secure { font-size: .88rem; font-weight: 600; opacity: .8; }

/* ---------- Garantía ---------- */
.guarantee {
  display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 820px; margin-inline: auto;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); padding: clamp(22px, 4vw, 36px);
}
.guarantee img { width: 96px; }
.guarantee h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 8px; }
.guarantee p { font-weight: 600; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; display: grid; place-items: center; line-height: 1;
  background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 50%;
  font-size: 1.4rem; font-weight: 700; transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 20px; font-weight: 600; color: var(--ink-soft); }

/* ---------- CTA final ---------- */
.final { background: var(--yellow); text-align: center; border-top: 3px solid var(--ink); }
.final .garland { margin-bottom: clamp(24px, 5vw, 56px); }
.final__inner { display: grid; gap: 16px; justify-items: center; padding-bottom: var(--section-y); }
.final__ball { width: clamp(84px, 14vw, 120px); height: auto; animation: bob 3.6s ease-in-out infinite; }
.final p { font-weight: 700; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding-block: clamp(36px, 6vw, 56px); }
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-weight: 700; }
.footer__links a { text-underline-offset: 3px; }
.footer__legal { max-width: 62ch; font-size: .85rem; opacity: .75; }
.footer__copy { font-size: .85rem; opacity: .75; }

/* ---------- Barra fija móvil ---------- */
.sticky {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 3px solid var(--ink);
  transform: translateY(110%); transition: transform .3s ease; visibility: hidden;
}
.sticky.is-visible { transform: none; visibility: visible; }
.sticky__price { line-height: 1.2; font-size: .9rem; }
.sticky__price b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--red); }
.sticky .btn { min-height: 48px; padding-inline: 1.2em; font-size: 1rem; box-shadow: 0 3px 0 var(--ink); flex: none; }

/* ---------- Visor ---------- */
.lightbox {
  width: min(94vw, 760px); max-height: 94dvh; padding: 0; border: 3px solid var(--ink); border-radius: 20px;
  background: var(--cream); color: var(--ink); overflow: hidden;
}
.lightbox::backdrop { background: rgba(29,43,83,.78); backdrop-filter: blur(3px); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 3px solid var(--ink); background: var(--yellow); margin: 0; }
.lightbox__title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.lightbox__close, .lightbox__nav {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none; cursor: pointer;
  font: 700 1.4rem/1 var(--font-head); color: var(--ink); background: #fff;
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink);
}
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 14px; min-height: 0; overflow: auto; }
.lightbox__stage img { max-height: calc(94dvh - 120px); width: auto; max-width: 100%; border: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; font-size: 2rem; padding-bottom: 4px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ---------- Revelado ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Tablet ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .hero__cta { display: flex; flex-wrap: wrap; width: auto; }
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .bonuses { grid-template-columns: repeat(2, 1fr); }
  .bonuses .bonus:last-child { grid-column: 1 / -1; max-width: 520px; justify-self: center; width: 100%; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 88px 22px 26px; text-align: center; justify-items: center; }
  .step__n { left: 50%; top: 22px; translate: -50% 0; }
  .guarantee { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; gap: 28px; }
  .guarantee img { width: 128px; }
  .footer__inner { grid-template-columns: 1fr auto; text-align: left; justify-items: start; row-gap: 14px; }
  .footer__links { justify-content: flex-end; justify-self: end; }
  .footer__legal, .footer__copy { grid-column: 1 / -1; }
  .rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 8px var(--gutter) 8px; gap: 24px 20px; }
  .swipe-hint { display: none; }
  .container--rail { max-width: 1180px; }
}

/* =========================================================
   Escritorio ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero__visual { justify-self: end; width: 100%; }
  .stack { width: min(100%, 500px); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .bonuses { grid-template-columns: repeat(3, 1fr); }
  .bonuses .bonus:last-child { grid-column: auto; max-width: none; justify-self: stretch; }
  .split { grid-template-columns: 1fr 1fr; }
  .rail { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .container { max-width: 1240px; }
  .stack { width: min(100%, 540px); }
}

/* Pantallas muy grandes */
@media (min-width: 1800px) {
  html { font-size: 112.5%; }
  .container { max-width: 1400px; }
}

/* Móviles muy pequeños */
@media (max-width: 359px) {
  .topbar p { font-size: .75rem; }
  .btn--lg { padding-inline: 1.1em; }
  .step { padding-left: 80px; }
  .step__n { width: 46px; height: 46px; left: 16px; }
}

/* Móvil horizontal: no ocupar toda la altura */
@media (max-height: 480px) and (orientation: landscape) {
  .sticky { display: none; }
  body { padding-bottom: 0; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
