/* ==========================================================================
   SISTEMA DE DISEÑO
   Cambia la marca entera desde aquí.
   ========================================================================== */
:root {
  /* Color · marca */
  --color-primary: #0B2E5C;        /* azul profundo: barra superior, bloques de marca */
  --color-primary-soft: #F1F5FB;   /* fondo de secciones claras */
  --color-accent: #1D6FF2;         /* CTA, selección, badges */
  --color-accent-hover: #155CD1;
  --color-accent-soft: #E9F1FE;

  /* Color · texto y superficies */
  --color-ink: #0D1117;            /* texto principal */
  --color-muted: #5B6472;          /* texto secundario */
  --color-line: #E3E7EE;           /* bordes y separadores */
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-dark: #0A0A0B;   /* secciones oscuras y footer */
  --color-on-dark: #F4F6F9;
  --color-on-dark-muted: rgba(244, 246, 249, 0.66);

  /* Color · estados */
  --color-success: #12A150;        /* checks */
  --color-urgency: #EA7310;        /* stock bajo, "casi agotado" */
  --color-danger: #E5484D;         /* barra de últimas unidades */
  --color-rating: #00B67A;         /* estrellas estilo Trustpilot */

  /* Forma */
  --radius-card: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Espaciado (escala 4 · 8 · 12 · 16 · 24 · 32 · 48 · 80) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;

  /* Tipografía */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.06), 0 1px 1px rgba(13, 17, 23, 0.03);
  --shadow-md: 0 10px 30px -12px rgba(13, 17, 23, 0.18), 0 2px 6px rgba(13, 17, 23, 0.04);
  --shadow-lg: 0 30px 60px -24px rgba(11, 46, 92, 0.35);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --topbar-h: 44px;       /* script.js lo ajusta a la altura real */
  --section-y: 4rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section-y: 7rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; }
s { text-decoration-thickness: 1.5px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--topbar-h) + 64px); }

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

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--color-ink); color: #fff;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

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

/* Iconos del sprite */
.i {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   PLACEHOLDERS DE IMAGEN (.ph > img[data-slot])
   ========================================================================== */
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  background: #E9ECF1;
  border-radius: inherit;
  aspect-ratio: 1 / 1;
}
.ph:has(> img[data-ratio="4:5"]) { aspect-ratio: 4 / 5; }
.ph:has(> img[data-ratio="4:3"]) { aspect-ratio: 4 / 3; }
.ph:has(> img[data-ratio="1:2"]) { aspect-ratio: 1 / 2; }
.ph:has(> img[data-ratio="9:19.5"]) { aspect-ratio: 9 / 19.5; }
.ph:has(> img[data-ratio="16:9"]) { aspect-ratio: 16 / 9; }

.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ph--contain > img { object-fit: contain; }
.ph > img[src=""], .ph.is-empty > img { opacity: 0; }

/* Etiqueta con el nombre del slot (la pone script.js en data-label) */
.ph.is-empty::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--space-2);
  text-align: center;
  font: 600 0.72rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  color: #7A8494;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(0,0,0,0.05) 50%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, rgba(0,0,0,0.05) 50%, transparent 50.4%);
  word-break: break-word;
}
.ph:not(.is-empty).ph--contain { background: transparent; }

.dark .ph { background: rgba(255, 255, 255, 0.06); }
.dark .ph.is-empty::after {
  color: rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255,255,255,0.07) 50%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,0.07) 50%, transparent 50.4%);
}

/* Miniaturas: sin texto, solo el gris */
.thumb .ph.is-empty::after { content: ""; }

/* Imágenes asignadas: proporción natural, sin placeholder */
.media { display: block; overflow: hidden; }
.media > img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.005em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(29, 111, 242, 0.7); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.btn--xl { width: 100%; min-height: 60px; font-size: 1.0625rem; border-radius: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1.5px var(--color-line);
  transition: box-shadow 0.2s, opacity 0.2s;
}
.icon-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ==========================================================================
   1. BARRA SUPERIOR
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}
.topbar__text strong { font-weight: 600; }
.topbar__btn {
  flex: none;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.78rem;
  transition: background-color 0.2s;
}
.topbar__btn:hover { background: var(--color-accent-soft); }
.topbar :focus-visible { outline-color: #fff; }

/* ==========================================================================
   2. NAV
   ========================================================================== */
.nav {
  position: relative; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
}
.nav__inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 60px;
}
.nav__burger, .nav__cart {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
}
.nav__burger .i, .nav__cart .i { width: 24px; height: 24px; }
.nav__logo {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.nav__cart { position: relative; justify-self: end; }
.nav__count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  line-height: 18px; text-align: center;
}
.nav__count[data-empty] { background: var(--color-line); color: var(--color-muted); }

.nav__menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  display: none;
}
.nav__menu.is-open { display: block; animation: fade-down 0.2s var(--ease); }
.nav__list { padding: var(--space-2) var(--gutter) var(--space-4); }
.nav__list a {
  display: block;
  padding: var(--space-3) 0;
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-line);
}
.nav__list li:last-child a { border-bottom: 0; }

@media (min-width: 900px) {
  .nav__inner { grid-template-columns: auto 1fr auto; gap: var(--space-6); height: 68px; }
  .nav__burger { display: none; }
  .nav__logo { justify-self: start; font-size: 1.35rem; }
  .nav__menu { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .nav__list { display: flex; justify-content: center; gap: var(--space-6); padding: 0; }
  .nav__list a { padding: var(--space-2) 0; border: 0; font-size: 0.925rem; color: var(--color-muted); transition: color 0.2s; }
  .nav__list a:hover { color: var(--color-ink); }
}

@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   3. BLOQUE DE PRODUCTO
   ========================================================================== */
.product { padding-block: 0 var(--space-7); }
.product__grid { display: grid; gap: var(--space-5); }

@media (min-width: 900px) {
  .product { padding-block: var(--space-6) var(--space-8); }
  .product__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
  .gallery { position: sticky; top: calc(var(--topbar-h) + var(--space-5)); }
}
@media (min-width: 1200px) {
  .product__grid { gap: var(--space-8); }
}

/* 3A · Galería ----------------------------------------------------------- */
.gallery { min-width: 0; }
.gallery__main {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--color-primary-soft);
  touch-action: pan-y;
}
@media (min-width: 640px) {
  .gallery__main { margin-inline: 0; border-radius: var(--radius-card); margin-top: var(--space-4); }
}
@media (min-width: 900px) { .gallery__main { margin-top: 0; } }

.gallery__main .media { aspect-ratio: 1 / 1; }
.gallery__main .media > img { height: 100%; object-fit: cover; }

.gallery__badge {
  position: absolute; left: var(--space-4); top: var(--space-4);
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem; font-weight: 600;
}
.gallery__badge .i { color: var(--color-success); width: 18px; height: 18px; }

.gallery__arrow {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery__arrow--prev { left: var(--space-3); }
.gallery__arrow--next { right: var(--space-3); }
.gallery__main:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
@media (hover: none) { .gallery__arrow { display: none; } }

.gallery__counter {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 17, 23, 0.6);
  color: #fff;
  font-size: 0.72rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gallery__thumbs {
  display: flex; gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  margin-inline: -3px;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs li { flex: 0 0 64px; }
@media (min-width: 900px) {
  .gallery__thumbs { display: grid; grid-template-columns: repeat(8, 1fr); }
}
.thumb {
  display: block; width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--color-line);
  opacity: 0.7;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.thumb .media { aspect-ratio: 1 / 1; border-radius: 10px; }
.thumb .media > img { height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--color-ink); }

.trust-strip {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.trust-strip strong { color: var(--color-ink); font-weight: 600; }
.trust-strip__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
}
.trust-strip__icon .i { width: 18px; height: 18px; }

/* 3B · Caja de compra ---------------------------------------------------- */
.buybox { min-width: 0; container-type: inline-size; }

.rating-line {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.84rem;
  color: var(--color-muted);
}
.rating-line strong { color: var(--color-ink); font-weight: 600; }
.rating-line__brand { font-weight: 600; color: var(--color-ink); }

.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars > span {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  background: var(--color-rating);
  color: #fff;
}
.tp-stars .i { width: 13px; height: 13px; }
.tp-stars__part { background: linear-gradient(90deg, var(--color-rating) 80%, #DCDCE6 80%) !important; }
.tp-stars--sm > span { width: 16px; height: 16px; }
.tp-stars--sm .i { width: 11px; height: 11px; }

.buybox__title {
  margin-top: var(--space-2);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  font-size: 0.8rem; font-weight: 500;
  color: var(--color-primary);
}
.chip .i { width: 15px; height: 15px; }

/* Pasos */
.step { margin-top: var(--space-6); }
.step__title {
  display: flex; align-items: center; gap: 0.35rem;
  width: 100%;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.step__num { color: var(--color-accent); }

/* Packs (radio cards) */
.packs { display: grid; gap: var(--space-3); }
.pack {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1.5px var(--color-line);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.pack:hover { box-shadow: inset 0 0 0 1.5px #C5CCD8; }
.pack.is-selected { background: var(--color-accent-soft); box-shadow: inset 0 0 0 2px var(--color-accent); }
.pack__input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(.pack__input:focus-visible) { outline: 2.5px solid var(--color-accent); outline-offset: 3px; }

.pack__radio {
  width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #B7BFCC;
  background: #fff;
  transition: box-shadow 0.2s var(--ease);
}
.pack.is-selected .pack__radio { box-shadow: inset 0 0 0 6px var(--color-accent); }

.pack__body { display: grid; gap: var(--space-2); min-width: 0; }
.pack__name { font-weight: 600; font-size: 0.975rem; line-height: 1.3; }
.pack__free { color: var(--color-accent); font-weight: 700; }
.pack__perks { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.perk { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: var(--color-muted); }
.perk .i { width: 14px; height: 14px; color: var(--color-success); stroke-width: 2.2; }

.pack__price { display: grid; justify-items: end; line-height: 1.2; }
.pack__now { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.pack__was { font-size: 0.82rem; color: var(--color-muted); }

.pack__badge {
  position: absolute; top: -10px; right: var(--space-4);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Barra de progreso de regalos */
.gifts {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-radius: 16px;
  background: var(--color-primary-soft);
}
.gifts__msg {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: var(--space-4);
}
.gifts__msg strong { color: var(--color-accent); }
.gifts__bar {
  position: relative;
  height: 6px;
  margin-inline: 14px;
  border-radius: 6px;
  background: #D6DEEA;
}
.gifts__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 0.5s var(--ease);
}
.gifts__dot {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #fff;
  color: #9AA4B2;
  box-shadow: inset 0 0 0 2px #D6DEEA;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.gifts__dot .i { width: 14px; height: 14px; stroke-width: 2; }
.gifts__dot[data-milestone="0"] { left: 0; }
.gifts__dot[data-milestone="1"] { left: 50%; }
.gifts__dot[data-milestone="2"] { left: 100%; }
.gifts__dot.is-reached { background: var(--color-accent); color: #fff; box-shadow: 0 0 0 4px rgba(29, 111, 242, 0.15); }

.gifts__labels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-4);
  font-size: 0.72rem; font-weight: 500;
  color: var(--color-muted);
  line-height: 1.25;
}
.gifts__labels li:nth-child(2) { text-align: center; }
.gifts__labels li:nth-child(3) { text-align: right; }
.gifts__labels li.is-reached { color: var(--color-ink); font-weight: 600; }

/* CTA */
.cta { margin-top: var(--space-5); gap: 0.6rem; }
.cta__sep { opacity: 0.6; }
.cta__prices { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.cta__was { opacity: 0.7; font-weight: 500; font-size: 0.95em; }
.cta:disabled {
  background: #C9D2E0;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.cta.is-loading { pointer-events: none; opacity: 0.85; }


.cta-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-3);
  font-size: 0.84rem;
  color: var(--color-muted);
}
.cta-meta__ship { display: inline-flex; align-items: center; gap: 0.35rem; }
.cta-meta__ship .i { width: 17px; height: 17px; }
.urgency { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--color-urgency); }
.urgency__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-urgency);
}
.urgency__dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--color-urgency);
  opacity: 0.35;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }

.assurances {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.assurances li {
  display: grid; justify-items: center; gap: 0.35rem;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  text-align: center;
  font-size: 0.74rem; font-weight: 600;
  line-height: 1.25;
}
.assurances .i { width: 22px; height: 22px; color: var(--color-primary); }

/* Order bumps */
.bumps {
  margin-top: var(--space-5);
  padding: 0 var(--space-4) var(--space-2);
  border: 1.5px solid var(--color-line);
  border-radius: 16px;
}
.bumps__title {
  float: left; width: 100%;
  padding: var(--space-3) 0 var(--space-1);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.bump {
  position: relative;
  clear: both;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-2) 0;
  cursor: pointer;
}
.bump + .bump { border-top: 1px dashed var(--color-line); }
.bump__input { position: absolute; opacity: 0; pointer-events: none; }
.bump__box {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #fff;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #B7BFCC;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bump__box .i { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s var(--ease); }
.bump:hover .bump__box { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.bump.is-checked .bump__box, .bump:has(.bump__input:checked) .bump__box { background: var(--color-accent); box-shadow: none; }
.bump.is-checked .bump__box .i, .bump:has(.bump__input:checked) .bump__box .i { opacity: 1; transform: none; }
.bump:has(.bump__input:focus-visible) .bump__box { outline: 2.5px solid var(--color-accent); outline-offset: 3px; }
.bump__name { font-size: 0.9rem; font-weight: 500; line-height: 1.35; }
.bump__price { font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Upsell de cartera */
.upsell {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas: "media body" "media action";
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: 16px;
  background: var(--color-primary-soft);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@container (min-width: 440px) {
  .upsell { grid-template-columns: 80px 1fr auto; grid-template-areas: "media body action"; }
}
.upsell.is-added { background: #EEF9F2; box-shadow: inset 0 0 0 2px var(--color-success); }
.upsell__media { grid-area: media; align-self: start; width: 100%; border-radius: 12px; }
.upsell .ph.is-empty::after { font-size: 0.5rem; padding: 4px; }
.upsell__body { grid-area: body; display: grid; gap: 2px; min-width: 0; }
.upsell__name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.upsell__desc { font-size: 0.78rem; line-height: 1.4; color: var(--color-muted); }
.upsell__price { font-size: 0.92rem; }
.upsell__price strong { font-family: var(--font-display); }
.upsell__price s { margin-left: 0.2rem; font-size: 0.8rem; color: var(--color-muted); }
.upsell__btn {
  grid-area: action;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--color-ink);
  font-weight: 600; font-size: 0.84rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.upsell__btn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.upsell__btn:hover { background: var(--color-ink); color: #fff; }
.upsell__icon-added { display: none; }
.upsell.is-added .upsell__btn { background: var(--color-success); color: #fff; box-shadow: none; }
.upsell.is-added .upsell__icon-add { display: none; }
.upsell.is-added .upsell__icon-added { display: block; }

.upsell-included {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 16px;
  background: #EEF9F2;
  box-shadow: inset 0 0 0 1.5px rgba(18, 161, 80, 0.35);
  font-size: 0.9rem; font-weight: 600;
  color: #0B5C32;
}
.upsell-included .i { width: 18px; height: 18px; color: var(--color-success); stroke-width: 2.6; }

/* ==========================================================================
   CARRITO LATERAL
   ========================================================================== */
body.is-locked { overflow: hidden; }

.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(13, 17, 23, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.drawer.is-open .drawer__overlay { opacity: 1; }

/* Móvil: hoja a pantalla completa que sube desde abajo */
.drawer__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--color-surface);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }

/* Escritorio: panel lateral desde la derecha */
@media (min-width: 900px) {
  .drawer__panel {
    left: auto;
    width: min(440px, 100%);
    transform: translateX(100%);
    box-shadow: -24px 0 60px -24px rgba(13, 17, 23, 0.4);
  }
}

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-line);
}
.drawer__title { font-size: 1.2rem; }
.drawer__close {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #F3F5F8;
  transition: background-color 0.2s;
}
.drawer__close:hover { background: #E4E8EE; }
.drawer__close .i { width: 20px; height: 20px; }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
  padding: var(--space-5);
  display: grid; gap: var(--space-5);
  align-content: start;
}
.drawer__foot {
  border-top: 1px solid var(--color-line);
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom));
  display: grid; gap: var(--space-2);
}
.drawer__subtotal {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-display);
}
.drawer__subtotal span { font-size: 1rem; font-weight: 700; }
.drawer__subtotal strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.drawer__fine { font-size: 0.78rem; color: var(--color-muted); }
.drawer__foot .btn { margin-top: var(--space-2); }
.drawer__secure {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--color-muted);
}
.drawer__secure .i { width: 15px; height: 15px; }

.drawer__empty {
  display: grid; justify-items: center; gap: var(--space-4);
  padding-block: var(--space-6);
  text-align: center;
  color: var(--color-muted);
}

/* Progreso hacia el envío gratis */
.ship { display: grid; gap: var(--space-2); }
.ship__msg { font-size: 0.875rem; font-weight: 600; }
.ship__msg strong { color: var(--color-accent); }
.ship__msg.is-done { color: var(--color-success); }
.ship__bar { height: 8px; border-radius: 8px; background: #E6EAF1; overflow: hidden; }
.ship__fill {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 0.4s var(--ease);
}
.ship__fill.is-done { background: var(--color-success); }

/* Línea del pack */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: start; }
.cart-line__media { border-radius: 12px; overflow: hidden; background: var(--color-primary-soft); }
.cart-line__media img { display: block; width: 100%; height: auto; }
.cart-line__body { display: grid; gap: 2px; min-width: 0; }
.cart-line__name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.cart-line__meta { font-size: 0.8rem; color: var(--color-muted); }
.cart-line__remove {
  justify-self: start;
  margin-top: var(--space-1);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.cart-line__remove:hover { color: var(--color-danger); }
.cart-line__price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

/* Bloque "Mejora tu pedido" */
.upgrade {
  border: 1.5px solid var(--color-line);
  border-radius: 16px;
  padding: var(--space-3) var(--space-4) var(--space-2);
}
.upgrade__title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-muted);
}
.bump--rich { align-items: start; padding-block: var(--space-3); }
.bump--rich .bump__box { margin-top: 2px; }
.bump--rich .bump__price { color: var(--color-accent); }
.bump__body { display: grid; gap: 2px; min-width: 0; }
.bump__desc { font-size: 0.78rem; font-weight: 400; line-height: 1.4; color: var(--color-muted); }

/* Acordeones */
.accordion { margin-top: var(--space-6); border-bottom: 1px solid var(--color-line); }
.acc { border-top: 1px solid var(--color-line); }
.acc__h { font: inherit; letter-spacing: normal; }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 56px;
  padding: var(--space-3) 0;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.acc__chev { width: 20px; height: 20px; color: var(--color-muted); transition: transform 0.25s var(--ease); }
.acc__btn[aria-expanded="true"] .acc__chev { transform: rotate(180deg); }
.acc__panel { padding: 0 0 var(--space-4); color: var(--color-muted); font-size: 0.925rem; animation: fade-down 0.25s var(--ease); }
.acc__panel strong { color: var(--color-ink); font-weight: 600; }

.spec-list li {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-line);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li span:first-child { color: var(--color-ink); font-weight: 500; }
.spec-list li span:last-child { text-align: right; }

/* ==========================================================================
   4. NAV DE SALTO
   ========================================================================== */
.jumpnav {
  position: sticky; top: var(--topbar-h); z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-block: 1px solid var(--color-line);
}
.jumpnav__list {
  display: flex; justify-content: center;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.jumpnav__list::-webkit-scrollbar { display: none; }
.jumpnav__list a {
  position: relative;
  display: block;
  padding: 0.85rem 0.7rem;
  font-size: 0.86rem; font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.jumpnav__list a::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--color-ink);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.jumpnav__list a:hover, .jumpnav__list a.is-active { color: var(--color-ink); }
.jumpnav__list a.is-active::after { transform: scaleX(1); }
@media (min-width: 900px) {
  .jumpnav__list { gap: var(--space-5); }
  .jumpnav__list a { font-size: 0.92rem; }
}

/* ==========================================================================
   SECCIONES · COMÚN
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--color-primary-soft); }

.section__head { margin-bottom: var(--space-6); }
.section__head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); }
@media (min-width: 900px) { .section__head { margin-bottom: var(--space-7); } }

.section__title { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.section__lead { margin-top: var(--space-4); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.175rem); color: var(--color-on-dark-muted); text-wrap: pretty; }
.section__lead--light { color: var(--color-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: var(--space-3);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow .i { width: 16px; height: 16px; }
.eyebrow--dark { color: #8CB8FF; }

/* Secciones oscuras */
.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
}
.dark__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(10, 10, 11, 0.2), rgba(10, 10, 11, 0.85) 100%),
    linear-gradient(180deg, var(--color-surface-dark) 0%, rgba(10, 10, 11, 0.4) 25%, rgba(10, 10, 11, 0.4) 75%, var(--color-surface-dark) 100%);
}
.dark--texture .dark__bg { opacity: 0.35; }
.dark--texture::before {
  background:
    radial-gradient(ellipse 60% 50% at 75% 50%, rgba(29, 111, 242, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.3), rgba(10, 10, 11, 0.7));
}
.dark :focus-visible { outline-color: #8CB8FF; }

/* ==========================================================================
   TABS (componente común)
   ========================================================================== */
.tablist {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #E9EDF3;
  max-width: 100%;
}
.tablist--center { display: flex; width: fit-content; margin-inline: auto; }
.tablist--scroll { overflow-x: auto; scrollbar-width: none; }
.tablist--scroll::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem; font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tab:hover { color: var(--color-ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--color-ink); box-shadow: var(--shadow-sm); }

.tablist--dark { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tablist--dark .tab { color: var(--color-on-dark-muted); }
.tablist--dark .tab:hover { color: #fff; }
.tablist--dark .tab[aria-selected="true"] { background: #fff; color: var(--color-ink); }

.tabs__panel:focus-visible { outline-offset: 6px; border-radius: var(--radius-card); }
.tabs__panel:not([hidden]) { animation: fade-in 0.35s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   5. RED BUSCAR
   ========================================================================== */
.tabs--phone { display: grid; justify-items: center; gap: var(--space-5); }
.tabs--phone .tabs__panels { width: 100%; }
.tabs--phone .tabs__panel { display: grid; justify-items: center; gap: var(--space-4); }
.tabs--phone .tablist { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs--phone .tablist::-webkit-scrollbar { display: none; }
.tabs--phone .tab { padding-inline: 0.8rem; font-size: 0.8rem; }

.ph--phone, .media--phone {
  width: min(62vw, 260px);
  border-radius: 28px;
}
.media--phone { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.tabs__caption { max-width: 440px; text-align: center; font-size: 0.95rem; color: var(--color-on-dark-muted); min-height: 3em; }

@media (min-width: 900px) {
  .ph--phone, .media--phone { width: 300px; border-radius: 32px; }
  .tabs--phone .tab { padding-inline: 1.1rem; font-size: 0.9rem; }
}

/* ==========================================================================
   6. COMPARATIVA SIN / CON
   ========================================================================== */
.compare__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .compare__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }

.compare__col {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-card);
}
@media (min-width: 900px) { .compare__col { padding: var(--space-6); } }
.compare__col--without { background: #F4F5F7; }
.compare__col--with { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-lg); }

.compare__h { display: flex; align-items: center; gap: var(--space-3); font-size: 1.35rem; }
.compare__badge {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
}
.compare__badge .i { width: 18px; height: 18px; stroke-width: 2.4; }
.compare__col--without .compare__badge { background: #E3E5EA; color: #7A8290; }
.compare__col--with .compare__badge { background: var(--color-accent); color: #fff; }

.ticks { display: grid; gap: var(--space-3); }
.ticks li { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 500; }
.ticks .i { width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.4; }
.ticks--x li { color: var(--color-muted); }
.ticks--x .i { color: #A9AFBA; }
.ticks--check .i { color: #5BE39A; }

.ph--shot, .media--shot {
  width: min(55%, 220px);
  justify-self: center;
  align-self: end;
  border-radius: 24px;
}
.compare__col--without .ph--shot { background: #E2E5EA; }
.compare__col--with .ph--shot { background: rgba(255, 255, 255, 0.1); }
.compare__col--with .ph.is-empty::after { color: rgba(255, 255, 255, 0.6); background: none; }

/* ==========================================================================
   6B. SEGUIMIENTO DE EQUIPAJE
   (reutiliza .compare__grid, .compare__col y .ticks)
   ========================================================================== */
.baggage__col { grid-template-rows: auto 1fr auto; }
.baggage__col .media--shot { align-self: center; }
.baggage .compare__col--without { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); }

/* ==========================================================================
   7. VENTAJAS · 3 TARJETAS
   ========================================================================== */
.features__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) var(--space-2);
  scroll-padding-inline: var(--gutter);
}
.features__grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .features__grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--space-5); }
}
.feature {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .ph { border-radius: 0; }
.feature__body { position: relative; padding: var(--space-6) var(--space-5) var(--space-5); }
.feature__icon {
  position: absolute; top: -22px; left: var(--space-5);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px #fff;
}
.feature__icon .i { width: 22px; height: 22px; }
.feature__title { font-size: 1.2rem; margin-bottom: var(--space-2); }
.feature p { color: var(--color-muted); }

/* ==========================================================================
   8. CÓMO FUNCIONA (oscura, tabs)
   ========================================================================== */
.tabs--split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.tabs--split > * { min-width: 0; }
.howto__intro { text-align: center; }
.howto__intro .section__title { margin-bottom: var(--space-5); }
.howto__intro .tablist { display: flex; width: fit-content; max-width: 100%; margin-inline: auto; }

.howto__panel { display: grid; justify-items: center; gap: var(--space-5); text-align: center; }
.howto__text { max-width: 420px; }
.howto__text h3 { font-size: 1.35rem; margin-bottom: var(--space-2); }
.howto__text p { color: var(--color-on-dark-muted); }

@media (min-width: 900px) {
  .tabs--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
  .howto__intro { text-align: left; }
  .howto__intro .tablist { margin-inline: 0; }
  .howto__panel { grid-template-columns: 1fr; }
}

/* Pestañas "Batería" y "Ultrafina": foto de producto 4:3 */
.ph--product, .media--product { width: 100%; max-width: 520px; border-radius: var(--radius-card); }
.media--product > img { border-radius: var(--radius-card); }

/* ==========================================================================
   9. CONFIGÚRALA EN 45 SEGUNDOS
   ========================================================================== */
.setup__tabs .tablist { margin-bottom: var(--space-5); }
.step-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-primary-soft);
}
.step-card .ph, .step-card .media { border-radius: 0; aspect-ratio: 4 / 3; }
.step-card .media > img { height: 100%; object-fit: cover; }
.step-card__body { position: relative; padding: var(--space-6) var(--space-5) var(--space-5); }
.step-card__num {
  position: absolute; top: -26px; left: var(--space-5);
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  box-shadow: 0 0 0 5px var(--color-primary-soft);
}
.step-card__of { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-2); }
.step-card__title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); margin-bottom: var(--space-3); }
.step-card p:last-child { color: var(--color-muted); }

@media (min-width: 768px) {
  .step-card { grid-template-columns: 1fr 1fr; align-items: center; }
  .step-card .ph, .step-card .media { aspect-ratio: 4 / 5; }
  .step-card__body { padding: var(--space-7); }
  .step-card__num { position: static; margin-bottom: var(--space-5); box-shadow: none; }
}

/* ==========================================================================
   10. TABLA COMPARATIVA
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.vs { width: 100%; min-width: 340px; font-size: 0.9rem; }
.vs th, .vs td { padding: var(--space-4) var(--space-3); text-align: center; }
.vs thead th { font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; color: var(--color-muted); vertical-align: bottom; }
.vs thead th.vs__brand { color: var(--color-ink); font-size: 1rem; }
.vs tbody th { text-align: left; font-weight: 500; padding-left: var(--space-4); }
.vs tbody tr + tr th, .vs tbody tr + tr td { border-top: 1px solid var(--color-line); }
.vs .vs__brand { background: var(--color-accent-soft); width: 26%; }
.vs td:last-child { width: 26%; }
.vs thead .vs__brand { border-radius: 14px 14px 0 0; }
.vs tbody tr:last-child .vs__brand { border-radius: 0 0 14px 14px; }

.yes, .no {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
}
.yes { background: var(--color-success); color: #fff; }
.yes--muted { background: #DDE3EA; color: var(--color-muted); }
.no { background: #F1F2F4; color: #A3A9B3; }
.yes .i, .no .i { width: 16px; height: 16px; stroke-width: 2.6; }

@media (min-width: 768px) {
  .vs { font-size: 1rem; }
  .vs th, .vs td { padding: var(--space-5); }
  .vs tbody th { padding-left: var(--space-6); }
}

.mfi-line {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: left;
}
.mfi-line .i { width: 28px; height: 28px; color: var(--color-primary); }

/* ==========================================================================
   CARRUSEL (común a 11 y 13)
   ========================================================================== */
.carousel__nav { display: none; gap: var(--space-2); flex: none; }
@media (min-width: 768px) { .carousel__nav { display: flex; } }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) var(--space-2);
  scroll-padding-inline: var(--gutter);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .carousel__track { grid-auto-columns: calc((100% - var(--space-5) * 2) / 3); gap: var(--space-5); margin: 0; padding: 4px 0 var(--space-2); scroll-padding-inline: 0; }
}
@media (min-width: 1100px) {
  .carousel__track { grid-auto-columns: calc((100% - var(--space-5) * 3) / 4); }
}

.carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-4); }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: #CDD3DC;
  transition: width 0.3s var(--ease), background-color 0.3s;
  position: relative;
}
.carousel__dot::before { content: ""; position: absolute; inset: -10px -4px; }
.carousel__dot[aria-current="true"] { width: 22px; background: var(--color-ink); }

/* 11 · Casos de uso */
.use-card .ph, .use-card .media { border-radius: var(--radius-card); }
.use-card__title { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: 1.15rem; }
.use-card__title .i { width: 20px; height: 20px; color: var(--color-accent); }
.use-card p { margin-top: var(--space-1); color: var(--color-muted); font-size: 0.94rem; }

/* ==========================================================================
   12. CÓMO SE CONFIGURA · 5 PASOS
   ========================================================================== */
.steps5__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 60%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) var(--space-2);
  scroll-padding-inline: var(--gutter);
}
.steps5__list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .steps5__list { grid-auto-columns: 38%; } }
@media (min-width: 1000px) {
  .steps5__list { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 8px 0 0; gap: var(--space-5); }
}
.step5 { position: relative; scroll-snap-align: start; }
.step5 .ph--shot, .step5 .media--shot { width: 100%; border-radius: 22px; background: #E1E6EE; box-shadow: 0 0 0 6px #fff, var(--shadow-md); }
.step5__title { margin-top: var(--space-4); font-size: 1.05rem; }
.step5 p { margin-top: var(--space-1); font-size: 0.88rem; color: var(--color-muted); }

/* ==========================================================================
   13. RESEÑAS
   ========================================================================== */
.review {
  display: flex; flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line);
}
.review__title { font-size: 1.05rem; }
.review__text { color: var(--color-muted); font-size: 0.94rem; flex: 1; }
.review__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: 0.82rem;
}
.review__name { font-weight: 600; }
.review__verified { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--color-success); font-weight: 500; }
.review__verified .i { width: 15px; height: 15px; }
.review__time { color: var(--color-muted); }

.reviews__summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: 0.94rem;
  color: var(--color-muted);
}
.reviews__summary strong { color: var(--color-ink); }

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.faq .tablist { margin-bottom: var(--space-5); }
.accordion--cards { margin-top: 0; border: 0; display: grid; gap: var(--space-2); }
.accordion--cards .acc {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding-inline: var(--space-4);
}
@media (min-width: 768px) { .accordion--cards .acc { padding-inline: var(--space-5); } }
.accordion--cards .acc__btn { font-size: 1rem; }
.faq .tablist { background: #E1E7F0; }

/* ==========================================================================
   15. SOPORTE
   ========================================================================== */
.support { padding-block: var(--space-7); }
.support__box {
  display: grid; justify-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line), var(--shadow-sm);
  text-align: center;
}
.support__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.support__icon .i { width: 26px; height: 26px; }
.support__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.support__text p { margin-top: var(--space-2); color: var(--color-muted); }
.support__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
@media (min-width: 768px) {
  .support__box { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; padding: var(--space-6); gap: var(--space-5); }
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.footer {
  padding-block: var(--space-7) calc(var(--space-6) + 76px);
  background: var(--color-surface-dark);
  color: var(--color-on-dark-muted);
  font-size: 0.9rem;
}
@media (min-width: 900px) { .footer { padding-block: var(--space-8) var(--space-6); } }
.footer :focus-visible { outline-color: #8CB8FF; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: #fff; }

.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
.footer__news { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-7); }
  .footer__news { grid-column: auto; }
}
.footer__col:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__col:last-child { grid-column: auto; } }

.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: #fff; margin-bottom: var(--space-4); }
.footer__h {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.footer__col li + li { margin-top: var(--space-2); }

.newsletter { display: flex; gap: var(--space-2); max-width: 440px; }
.newsletter__input {
  flex: 1; min-width: 0;
  height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter__input:focus-visible { outline: 2px solid #8CB8FF; outline-offset: 1px; }
.newsletter__input[aria-invalid="true"] { border-color: var(--color-danger); }
.newsletter__btn { padding-inline: var(--space-4); }
.newsletter__msg { min-height: 1.4em; margin-top: var(--space-2); font-size: 0.84rem; color: #7EE2A8; }
.newsletter__msg.is-error { color: #FF9A9D; }
.footer__fine { font-size: 0.78rem; }
.footer__fine a { text-decoration: underline; text-underline-offset: 2px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.payments { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
@media (min-width: 900px) { .payments { width: auto; } }
.pay { width: 46px; height: 29px; border-radius: 5px; }

.lang {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: #fff;
}
.lang .i { width: 18px; height: 18px; position: absolute; left: 12px; pointer-events: none; }
.lang__select {
  appearance: none; -webkit-appearance: none;
  height: 40px;
  padding: 0 2rem 0 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #fff;
  font-size: 0.86rem;
  cursor: pointer;
}
.lang__select option { color: var(--color-ink); }
.footer__copy { font-size: 0.8rem; }

/* ==========================================================================
   BARRA DE COMPRA MÓVIL + TOAST
   ========================================================================== */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px -12px rgba(13, 17, 23, 0.2);
  border-top: 1px solid var(--color-line);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar__info { display: grid; line-height: 1.25; min-width: 0; }
.mbar__pack { font-size: 0.78rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar__price { font-size: 1rem; }
.mbar__price s { color: var(--color-muted); font-size: 0.85rem; margin-right: 0.15rem; }
.mbar__price strong { font-family: var(--font-display); }
.mbar__btn { min-height: 46px; padding-inline: var(--space-5); }
@media (min-width: 900px) { .mbar { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90;
  width: max-content; max-width: calc(100% - var(--gutter) * 2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  animation: toast-in 0.3s var(--ease);
}
@media (min-width: 900px) { .toast { bottom: var(--space-6); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================================
   LISTICLE (listicle.html)
   ========================================================================== */
/* Cabecera: solo barra de oferta + logo centrado (sin nav de producto) */
.lhead {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}
.lhead__inner { display: flex; align-items: center; justify-content: center; height: 60px; }
.lhead .nav__logo { font-size: 1.3rem; }

/* Columna de lectura */
.article {
  width: min(100% - var(--gutter) * 2, 680px);
  margin-inline: auto;
  padding-block: var(--space-6) var(--space-8);
}
.article__title {
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.article__sub {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-muted);
  text-wrap: pretty;
}
.article__byline {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.byline__avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-primary-soft);
}
.byline__avatar .ph, .byline__avatar .media { aspect-ratio: 1 / 1; border-radius: 50%; }
.byline__avatar .ph.is-empty::after { content: ""; }
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article__byline strong { display: block; color: var(--color-ink); font-weight: 600; font-size: 0.95rem; }

.article p { font-size: 1.0625rem; line-height: 1.7; color: #2A313C; text-wrap: pretty; }
.article p + p { margin-top: 1.15em; }
.article .article__lead {
  margin-top: var(--space-5);
  font-size: 1.2rem; line-height: 1.6;
  color: var(--color-ink);
}

/* Secciones numeradas */
.li-item { margin-top: var(--space-7); }
.li-item__title {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
}
.li-item__num {
  flex: none;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  margin-top: -0.1em;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800;
}
.li-item__grid { display: grid; gap: var(--space-4); }
.li-item__media { min-width: 0; }
.li-item__media .media, .li-item__media .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.li-item__media .media > img { height: 100%; object-fit: cover; }

/* Excepción: fotos verticales que se estropean al recortarlas a 4:3 */
.li-item__media--natural .media { aspect-ratio: auto; }
.li-item__media--natural .media > img { height: auto; }

/* Escritorio: imagen al lado. Impares a la derecha, pares a la izquierda. */
@media (min-width: 720px) {
  .li-item__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-5);
  }
  .li-item--media-left .li-item__media { order: -1; }
  .li-item__media { position: sticky; top: calc(var(--topbar-h) + var(--space-4)); }
}

/* CTA azul oscuro a ancho completo (rompe la columna de 680) */
.li-cta {
  /* --sbw = ancho de la barra de scroll, lo calcula script.js */
  width: calc(100vw - var(--sbw, 0px));
  margin-inline: calc(50% - 50vw + var(--sbw, 0px) / 2);
  margin-block: var(--space-8);
  padding-block: var(--space-7);
  background: var(--color-primary);
  color: #fff;
}
.li-cta__inner {
  width: min(100% - var(--gutter) * 2, 680px);
  margin-inline: auto;
  display: grid; justify-items: start; gap: var(--space-4);
}
.li-cta__title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); font-weight: 800; }
.article .li-cta p { color: rgba(255, 255, 255, 0.84); font-size: 1.05rem; }
.li-cta .btn--primary { background: #fff; color: var(--color-primary); box-shadow: none; }
.li-cta .btn--primary:hover { background: var(--color-accent-soft); }
.li-cta :focus-visible { outline-color: #fff; }
.li-cta__fine { font-size: 0.875rem !important; color: rgba(255, 255, 255, 0.7) !important; }

.footer--mini { padding-block: var(--space-6); }
.footer--mini .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.footer--mini .footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }

/* Páginas legales */
.legal__updated { margin-top: var(--space-4); font-size: 0.875rem; color: var(--color-muted); }
.legal h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
}
.legal h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); font-size: 1.05rem; }
.legal ul { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.legal li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1.0625rem; line-height: 1.7;
  color: #2A313C;
}
.legal li::before {
  content: "";
  position: absolute; left: 0.25rem; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}
.legal li strong { color: var(--color-ink); font-weight: 600; }
.legal a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Texto sin escribir: script.js marca todo lo que contenga [TEXTO PENDIENTE] o [COMPLETAR] */
.is-pending {
  background: #FFF1B8;
  color: #5C4300 !important;
  box-shadow: 0 0 0 3px #FFF1B8;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
