/* Nanoparuro STEAM — landing educativa. Mobile first. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-bold.woff2") format("woff2"); }

:root {
  --blue: #0094EB;        /* marca: decorativo, bordes, texto grande */
  --blue-ink: #0070B5;    /* texto chico y botones: contraste AA sobre blanco */
  --blue-ink-dark: #005A93;
  --blue-light: #D8E9F3;
  --tint: #EEF6FB;
  --text: #333333;
  --heading: #212529;
  --muted: #55606B;
  --white: #FFFFFF;
  --green: #1F8A4C;
  --red: #C0392B;
  --wa: #25D366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 60, 110, .10);
  --shadow-sm: 0 3px 12px rgba(0, 60, 110, .08);
  --header-h: 64px;
  --grid: linear-gradient(rgba(0, 148, 235, .07) 1px, transparent 1px) 0 0 / 32px 32px,
          linear-gradient(90deg, rgba(0, 148, 235, .07) 1px, transparent 1px) 0 0 / 32px 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue-ink-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
small { font-size: .8em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

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

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.25; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-primary { background: var(--blue-ink); color: #fff; box-shadow: 0 6px 18px rgba(0, 112, 181, .28); }
.btn-primary:hover { background: var(--blue-ink-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue-ink); border-color: var(--blue-light); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-ink-dark); }
.btn-outline { background: transparent; color: var(--blue-ink); border-color: var(--blue-ink); }
.btn-outline:hover { background: var(--blue-ink); color: #fff; }
.btn-white { background: #fff; color: var(--blue-ink-dark); }
.btn-white:hover { background: var(--tint); color: var(--blue-ink-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(0, 148, 235, .14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-text b { color: var(--blue-ink); font-weight: 700; }

.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 48px; height: 48px; margin-right: -8px; padding: 0;
  background: transparent; border: 0; border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--heading); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 20px 20px;
  background: #fff; border-bottom: 1px solid var(--blue-light); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
}
.nav.is-open { display: flex; }
.nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--heading); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--tint);
}
.nav a:not(.btn):hover { color: var(--blue-ink); }
.nav .nav-cta { margin-top: 14px; }
.no-js .nav { position: static; display: flex; box-shadow: none; }
.no-js .nav-toggle { display: none; }

/* ---------- Secciones base ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--blue-ink); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--blue); }
h2 { font-size: clamp(1.625rem, 1.1rem + 2.4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.1875rem; }
.lead-sm { font-size: 1.0625rem; color: var(--muted); }
.note { margin: 24px 0 0; font-size: 1rem; color: var(--muted); }
.note a { padding: 12px 0; margin: -12px 0; }

.photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--blue-light); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { padding: 12px 16px; background: #fff; font-size: .875rem; color: var(--muted); }

.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230070B5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 48px; background: var(--grid), linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { font-size: clamp(1.875rem, 1rem + 2.9vw, 3.25rem); letter-spacing: -.025em; margin-bottom: 16px; }
.hl { white-space: nowrap; color: var(--blue); background: linear-gradient(transparent 70%, rgba(0, 148, 235, .16) 70%); }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 580px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.micro { margin: 14px 0 0; font-size: .875rem; color: var(--muted); }

.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1c2b; box-shadow: 0 18px 50px rgba(0, 60, 110, .22); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.sound-btn {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px;
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--heading);
  background: rgba(255, 255, 255, .94); border: 0; border-radius: 999px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.sound-btn:hover { background: #fff; }
.sound-btn .ico-on { display: none; }
.sound-btn[aria-pressed="true"] .ico-on { display: block; }
.sound-btn[aria-pressed="true"] .ico-off { display: none; }

/* ---------- Stats ---------- */
.stats { background: var(--blue-ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stats-grid li { display: flex; flex-direction: column; justify-content: center; padding: 22px 12px; text-align: center; border-color: rgba(255, 255, 255, .2); border-style: solid; border-width: 0; }
.stats-grid li:nth-child(odd) { border-right-width: 1px; }
.stats-grid li:nth-child(-n+2) { border-bottom-width: 1px; }
.stats-grid b { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem); line-height: 1.1; font-weight: 700; }
.stats-grid span { font-size: .875rem; opacity: .95; }

/* ---------- Propuesta ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.features { display: grid; gap: 20px; margin-top: 28px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); }
.f-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-light); color: var(--blue-ink); }
.f-ico svg { width: 26px; height: 26px; }
.photo-tilt { aspect-ratio: 3 / 2; }

/* ---------- Ruta ---------- */
.route { position: relative; display: grid; gap: 24px; counter-reset: step; }
.route-step {
  position: relative; display: grid; gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  border-top: 5px solid var(--blue);
}
.route-img { background: var(--blue-light); aspect-ratio: 16 / 10; overflow: hidden; }
.route-img img { width: 100%; height: 100%; object-fit: cover; }
.route-body { padding: 22px 20px 24px; min-width: 0; container-type: inline-size; }
.route-age {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--tint); color: var(--blue-ink); font-size: .8125rem; font-weight: 600;
}
.route-body h3 { font-size: 1.3125rem; }
.route-body > p:not(.route-age):not(.price) { color: var(--muted); }
.price { margin: 18px 0 0; font-size: 1.75rem; font-weight: 700; color: var(--heading); line-height: 1.2; }
.price small { display: block; font-size: .875rem; font-weight: 500; color: var(--muted); }
.levels { display: grid; gap: 14px; margin-top: 18px; }
.level { padding: 18px; border: 1px solid var(--blue-light); border-radius: var(--radius-sm); background: #FBFDFF; min-width: 0; }
.level header { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; }
.level h4 { margin: 0; font-size: 1.125rem; color: var(--blue-ink); }
.price-sm { font-weight: 700; font-size: 1.125rem; color: var(--heading); white-space: nowrap; }
.price-sm small { font-weight: 500; color: var(--muted); }
.level-who { font-size: .875rem; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.level p { font-size: 1rem; }
.level-proj { margin: 0; color: var(--muted); }
@container (min-width: 460px) {
  .level header { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
}
@container (min-width: 700px) {
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level header { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- Programa ---------- */
.program { display: grid; gap: 36px; align-items: start; }
.steps { display: grid; gap: 14px; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; align-items: start;
  padding: 18px; background: #fff; border: 1px solid var(--blue-light); border-radius: var(--radius-sm);
}
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.125rem; }
.steps h3 { font-size: 1.0625rem; margin: 9px 0 4px; }
.steps p { margin: 0; font-size: 1rem; color: var(--muted); }
.tag {
  grid-column: 2; justify-self: start; margin-top: 8px !important;
  padding: 6px 12px; border-radius: 8px; background: var(--tint);
  color: var(--heading) !important; font-weight: 700; font-size: 1rem !important; line-height: 1.3;
}
.tag small { font-weight: 500; color: var(--muted); }
.tag-free { background: #E5F5EC; color: var(--green) !important; }
.program-photo img { aspect-ratio: 3 / 2; }

/* ---------- Paquetes ---------- */
.pack-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 18px; font-size: 1.375rem; }
.pack-group span { font-size: .9375rem; font-weight: 500; color: var(--muted); }
.packs + .pack-group { margin-top: 48px; }
.packs { display: grid; gap: 18px; }
.pack {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 22px 22px; background: #fff; border: 1px solid var(--blue-light); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.pack h4 { font-size: 1.1875rem; margin-bottom: 6px; }
.pack-price { margin: 0; font-size: 2.125rem; font-weight: 700; color: var(--heading); line-height: 1.15; letter-spacing: -.02em; }
.pack-sub { margin: 4px 0 18px; font-size: 1rem; color: var(--muted); }
.pack .ticks { margin-bottom: 22px; font-size: 1rem; }
.pack .btn { margin-top: auto; width: 100%; }
.pack-featured { border: 2px solid var(--blue); box-shadow: 0 14px 36px rgba(0, 148, 235, .18); }
.badge {
  position: absolute; top: -13px; left: 22px; margin: 0;
  padding: 3px 12px; border-radius: 999px; background: var(--blue-ink); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Nanito ---------- */
.nanito-grid { display: grid; gap: 20px; }
.channel { display: flex; flex-direction: column; padding: 24px 20px; background: var(--tint); border-radius: var(--radius); min-width: 0; }
.channel > p { color: var(--muted); }
.chat {
  margin-top: auto; padding: 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 10px;
  background: #fff; box-shadow: var(--shadow-sm); font-size: 1rem;
}
.chat-wa { background: #ECE5DD; }
.chat-top { display: flex; align-items: center; gap: 8px; margin: -14px -14px 4px; padding: 10px 14px; border-radius: 14px 14px 0 0; font-size: .875rem; font-weight: 600; background: var(--blue-ink); color: #fff; }
.chat-wa .chat-top { background: #075E54; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.msg { max-width: 88%; margin: 0; padding: 10px 14px; border-radius: 14px; line-height: 1.45; }
.msg-me { align-self: flex-end; background: var(--blue-ink); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--tint); color: var(--heading); border-bottom-left-radius: 4px; }
.chat-wa .msg-me { background: #D9FDD3; color: var(--heading); }
.chat-wa .msg-bot { background: #fff; }
.nanito-extra { display: grid; gap: 24px; align-items: center; margin-top: 36px; }
.nanito-photo { max-width: 360px; aspect-ratio: 4 / 5; }
.nanito-extra h3 { font-size: 1.375rem; }
.nanito-extra p { color: var(--muted); }

/* ---------- Comparación: cards en mobile, tabla desde 760px ---------- */
.table-wrap { border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare tbody { display: grid; gap: 14px; }
.compare tr { display: block; padding: 16px 18px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.compare tbody th { display: block; margin-bottom: 8px; text-align: left; font-size: 1.0625rem; color: var(--heading); }
.compare td { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--tint); text-align: left; }
.compare td::before { content: attr(data-label); font-size: .8125rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.compare td.col-us { margin: 6px -10px 0; padding: 10px; border: 0; border-radius: 8px; background: var(--tint); font-weight: 600; color: var(--heading); }
.compare td.col-us::before { color: var(--blue-ink); }
.yes, .no { display: inline-flex; align-items: flex-start; gap: 6px; }
.yes svg, .no svg { width: 18px; height: 18px; flex: none; margin-top: .15em; }
.yes svg { color: var(--green); }
.no svg { color: var(--red); }
.table-hint { display: none; }

/* ---------- Tiendas ---------- */
.stores { display: grid; gap: 14px; margin: 24px 0 18px; }
.store { padding: 20px; border: 1px solid var(--blue-light); border-radius: var(--radius-sm); background: #fff; }
.store h3 { margin-bottom: 6px; }
.store p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.store p .ico { color: var(--blue); margin-top: .15em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.hours { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--tint); font-weight: 500; color: var(--heading); }
.hours .ico { color: var(--blue-ink); margin-top: .2em; }
#tiendas .photo { aspect-ratio: 4 / 3; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 52px 14px 18px;
  font-weight: 600; color: var(--heading); cursor: pointer; list-style: none; border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--blue-ink); border-bottom: 2.5px solid var(--blue-ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; padding: 56px 0; color: #fff; background: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(135deg, #0070B5 0%, #005A93 100%); }
.cta-grid { display: grid; gap: 32px; align-items: center; }
.cta-final h2 { color: #fff; }
.cta-final p { font-size: 1.0625rem; opacity: .95; max-width: 560px; }
.cta-photo { max-width: 320px; aspect-ratio: 4 / 5; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; background: #0F2233; color: #C9D6E0; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.footer-brand b { color: #fff; }
.footer-h { margin-bottom: 12px; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer-list li { margin-bottom: 4px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.footer-list a:hover { color: var(--blue-light); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 22px; height: 22px; }
.legal { margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; color: #9FB1BF; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s, opacity .25s;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 480px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row .btn { flex: 0 1 auto; }
}

@media (min-width: 600px) {
  .wrap { padding: 0 28px; }
  .section { padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid li { border-width: 0 !important; border-left-width: 1px !important; }
  .stats-grid li:first-child { border-left-width: 0 !important; }
  .route-step:not(.route-step-wide) { grid-template-columns: 220px 1fr; }
  .route-step:not(.route-step-wide) .route-img { aspect-ratio: auto; }
  .stores { grid-template-columns: 1fr 1fr; }
  .nanito-extra { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
  .cta-grid { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (min-width: 760px) {
  .nanito-grid { grid-template-columns: 1fr 1fr; }
  .note, .level p, .steps p, .pack-sub, .pack .ticks, .chat, .compare, .site-footer { font-size: .9375rem; }

  /* Comparación como tabla real */
  .table-wrap { overflow-x: auto; background: #fff; box-shadow: var(--shadow-sm); }
  .compare thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; padding: 0; box-shadow: none; border-radius: 0; background: none; }
  .compare th, .compare td { display: table-cell; padding: 14px 16px; border-top: 1px solid var(--tint); vertical-align: top; text-align: left; font-size: .9375rem; margin: 0; }
  .compare td::before { content: none; }
  .compare thead th { border-top: 0; font-size: .875rem; color: var(--muted); font-weight: 600; background: #fff; }
  .compare tbody th { font-weight: 600; width: 22%; }
  .compare td.col-us { margin: 0; padding: 14px 16px; border-radius: 0; border-top: 1px solid rgba(0, 148, 235, .14); background: var(--tint); }
  .compare thead .col-us { background: var(--blue-ink); color: #fff; }
}

@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .wrap { padding: 0 32px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }

  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .nav a:not(.btn) { min-height: 44px; padding: 0 10px; border: 0; font-size: .9375rem; border-radius: 8px; }
  .nav .nav-cta { margin: 0 0 0 10px; }

  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
  .split-rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .photo-tilt { transform: rotate(1.2deg); }

  .route { gap: 28px; }
  .route::before { content: ""; position: absolute; left: 130px; top: 40px; bottom: 40px; width: 3px; background: linear-gradient(var(--blue), var(--blue-light)); z-index: 0; }
  .route-step { z-index: 1; border-top: 0; border-left: 6px solid var(--blue); grid-template-columns: 260px 1fr; }
  .route-step .route-img { aspect-ratio: auto; }
  .route-step-wide { grid-template-columns: 260px 1fr; }
  .route-body { padding: 28px 32px; }
  .route-step:nth-child(2) { margin-left: 40px; }
  .route-step:nth-child(3) { margin-left: 80px; }

  .program { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
  .program-photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .steps li { grid-template-columns: 48px 1fr auto; padding: 20px 22px; align-items: center; }
  .step-n { width: 48px; height: 48px; }
  .steps h3 { margin-top: 0; }
  .tag { grid-column: 3; margin-top: 0 !important; text-align: right; justify-self: end; white-space: nowrap; }
  .tag small { display: block; }

  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .packs > :last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .pack { padding: 32px 26px 26px; }
  .pack-featured { transform: translateY(-8px); }

  .nanito-grid { gap: 24px; }
  .channel { padding: 30px; }
  .nanito-extra { grid-template-columns: 300px 1fr; gap: 40px; max-width: 900px; }

  .cta-final { padding: 80px 0; }
  .cta-grid { grid-template-columns: 1fr 320px; gap: 56px; }

  .site-footer { padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 960px) and (max-width: 1100px) {
  .nav a:not(.btn) { padding: 0 7px; font-size: .875rem; }
}

/* Mobile muy angosto (≤360px) */
@media (max-width: 374px) {
  .wrap { padding: 0 16px; }
  .brand-text { font-size: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .hero { padding-top: 24px; }
  .hero .lead { font-size: 1rem; }
  .btn-lg { padding: 14px 14px; font-size: .9375rem; gap: .4em; }
  .pack { padding: 24px 18px 18px; }
  .compare td { grid-template-columns: 1fr; gap: 2px; }
}

/* Fotos más bajas en mobile para no alargar el scroll */
@media (max-width: 599px) {
  .nanito-photo, .cta-photo { max-width: none; aspect-ratio: 16 / 10; }
  #tiendas .photo { aspect-ratio: 16 / 10; }
  .nanito-photo img { object-position: center 35%; }
  .cta-photo img { object-position: center 30%; }
}

/* Card de Electrónica: la foto no se estira con el alto de los 3 niveles */
@media (min-width: 960px) {
  .route-step-wide .route-img img { height: auto; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 16px); }
}

@media (min-width: 760px) {
  .compare tbody th { display: table-cell; margin: 0; font-size: .9375rem; }
}

@media (max-width: 599px) {
  /* Productos completos, sin recorte */
  .route-img { aspect-ratio: auto; height: 240px; }
  .route-img img { object-fit: contain; }
  /* Pasos: número + título arriba, texto a todo el ancho */
  .steps li { grid-template-columns: 40px minmax(0, 1fr); align-items: center; }
  .steps li > div { display: contents; }
  .steps h3 { margin: 0; align-self: center; }
  .steps li > div > p { grid-column: 1 / -1; margin-top: 4px; }
  .step-n { width: 40px; height: 40px; font-size: 1rem; }
  .tag { grid-column: 1 / -1; }
}

/* Celular en horizontal: copy y video lado a lado, el hero entra en pantalla */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) and (max-width: 959px) {
  :root { --header-h: 56px; }
  .hero { padding: 16px 0 28px; }
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .hero h1 { font-size: 1.625rem; margin-bottom: 10px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero .cta-row { margin-top: 16px; gap: 10px; }
  .hero .btn-lg { min-height: 48px; padding: 10px 18px; font-size: 1rem; }
}
