/* ===================================================================
   estilos.css — COMPRAS REFERIDOS
   Tokens y estilos base segun CR-01 (REGLAS DE DISEÑO).
   "El especial del colmado, version digital": calido, directo, con etiquetas
   de precio grandes. Movil primero (probar a 390px).
   =================================================================== */

/* --- Tokens de color obligatorios (CR-01 §2 — NO inventar colores) --- */
:root {
  --tinta:  #1A1333;  /* fondo base oscuro (morado-tinta) */
  --mango:  #FFB525;  /* precios y botones CTA, SIEMPRE */
  --oferta: #FF3D5A;  /* badges de descuento y urgencia, SOLO eso */
  --crema:  #FFF6E9;  /* texto sobre oscuro y tarjetas claras */
  --verde:  #00C48C;  /* SOLO "envio gratis" y confirmaciones */

  /* Derivados de apoyo (mismos colores, con alfa/oscurecidos) */
  --tinta-2: #241A45;      /* superficie ligeramente mas clara que el fondo */
  --sombra-dura: 6px 6px 0 rgba(0, 0, 0, 0.45); /* sombra dura desplazada (estilo tag fisica) */
  --sombra-tag: 4px 5px 0 rgba(0, 0, 0, 0.35);
}

/* --- Reset ligero --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--tinta);
  color: var(--crema);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; /* cuerpo de texto */
  line-height: 1.5;
  min-height: 100vh;
}

/* --- Tipografia (CR-01 §3) --- */
h1, h2, h3, .display, .precio-num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; /* titulos y precios */
  font-weight: 800;
  line-height: 1.05;
}
.tabular { font-family: 'Space Grotesk', monospace; font-weight: 700; } /* numeros y datos */

a { color: inherit; }

/* --- Contenedor --- */
.contenedor { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===================================================================
   CABECERA
   =================================================================== */
.cabecera {
  padding: 18px 0 14px;
  border-bottom: 2px solid rgba(255, 246, 233, 0.10);
  position: sticky; top: 0; z-index: 20;
  background: var(--tinta);
}
.marca {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: -0.02em;
  text-decoration: none;
}
/* El "punto de tag" del logo: cuadradito mango inclinado, guiño al elemento firma */
.marca .chip-logo {
  display: inline-block; width: 26px; height: 26px; background: var(--mango);
  transform: rotate(-4deg);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 50%);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.marca .nombre-com { color: var(--mango); }

/* ===================================================================
   BOTONES / PILLS
   =================================================================== */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;                 /* CR-01 §6: botones minimo 44px */
  padding: 0 16px;
  background: var(--mango);         /* CTA siempre mango */
  color: var(--tinta);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: none; border-radius: 10px; /* botones 10px */
  box-shadow: var(--sombra-dura);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
.cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(0,0,0,0.45); }

.pill {
  display: inline-block; padding: 5px 12px;
  border-radius: 20px;              /* pills 20px */
  font-size: 12px; font-weight: 700;
  border: 1.5px solid rgba(255, 246, 233, 0.25);
  background: transparent; color: var(--crema);
  cursor: pointer;
}
.pill.activa { background: var(--crema); color: var(--tinta); border-color: var(--crema); }

/* ===================================================================
   PIE DE PAGINA + AVISO LEGAL (CR-00 §5, obligatorio en TODAS las paginas)
   =================================================================== */
.pie {
  margin-top: 40px; padding: 28px 0 40px;
  border-top: 2px solid rgba(255, 246, 233, 0.10);
  background: var(--tinta-2);
}
.aviso-legal {
  font-size: 12.5px; color: rgba(255, 246, 233, 0.72);
  max-width: 780px; margin: 0 auto 16px;
}
.pie-links {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.pie-links a { color: var(--mango); text-decoration: none; }
.pie-links a:hover { text-decoration: underline; }

/* ===================================================================
   PAGINAS LEGALES (contenido de texto)
   =================================================================== */
.legal { padding: 26px 0 10px; max-width: 780px; }
.legal h1 { font-size: 30px; color: var(--mango); margin-bottom: 6px; }
.legal .fecha { font-size: 13px; color: rgba(255,246,233,.6); margin-bottom: 22px; }
.legal h2 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 14.5px; color: rgba(255,246,233,.88); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--mango); }
.volver { display: inline-block; margin: 22px 0 0; font-weight: 700; color: var(--mango); text-decoration: none; }

/* ===================================================================
   PORTADA "D · COMBINADA" (aprobada por John el 27-oct-2026)
   Referencia visual: diseno/portada-D.dc.html
   Todo va bajo body.portada para NO tocar el look de las páginas legales,
   que comparten este archivo (sus clases de arriba quedan intactas).
   =================================================================== */

/* --- Colores por modo (los de renderVals() del diseño D) ---
   El modo lo fija un script corto en el <head> poniendo data-tema en <html>. */
:root[data-tema="claro"] {
  --fondo: #FFF6E9;  --texto: #1A1333;  --tarjeta: #FFFFFF;  --borde: #1A1333;  --suave: #5A5370;
  --cinta-fondo: #1A1333;  --cinta-texto: #FFB525;
  --btn-fondo: #1A1333;    --btn-texto: #FFB525;
  --nav-fondo: #1A1333;    --nav-aro: #1A1333;
  --chip-activo-fondo: #1A1333;  --chip-activo-texto: #FFF6E9;
}
:root[data-tema="oscuro"] {
  --fondo: #1A1333;  --texto: #FFF6E9;  --tarjeta: #2A2147;  --borde: #FFF6E9;  --suave: #D9D3EA;
  --cinta-fondo: #FFB525;  --cinta-texto: #1A1333;
  --btn-fondo: #FFB525;    --btn-texto: #1A1333;
  --nav-fondo: #2A2147;    --nav-aro: #FFF6E9;
  --chip-activo-fondo: #FFB525;  --chip-activo-texto: #1A1333;
}

/* Desplazamiento suave al tocar "Ver ofertas de hoy" o la barra de abajo */
html { scroll-behavior: smooth; }

body.portada {
  background: var(--fondo, var(--crema));
  color: var(--texto, var(--tinta));
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: background .3s, color .3s;
}

/* Columna central: el diseño es de celular; en pantallas grandes se centra */
.portada .ancho { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Texto solo para lectores de pantalla */
.solo-lector {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Botón cuadrado con borde grueso y sombra dura (modo y buscar) --- */
.btn-cuadro {
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--borde); border-radius: 10px;
  background: var(--tarjeta); color: var(--texto);
  box-shadow: 3px 3px 0 var(--borde);
  cursor: pointer;
}
.btn-cuadro:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--borde); }
/* Luna en claro, sol en oscuro */
:root[data-tema="oscuro"] .icono-luna,
:root[data-tema="claro"] .icono-sol { display: none; }

/* ===================== BARRA SUPERIOR ===================== */
.barra { border-bottom: 3px solid var(--borde); }
.barra .ancho {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texto); }
.logo-cuadro {
  width: 32px; height: 32px; flex: 0 0 32px; background: var(--mango);
  border: 3px solid var(--borde); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--borde); transform: rotate(-4deg);
}
.logo-texto {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 19px; letter-spacing: -0.5px; white-space: nowrap;
}
.logo-texto span { background: var(--mango); color: var(--tinta); padding: 0 4px; border-radius: 4px; }
.barra-botones { display: flex; gap: 8px; }

/* ===================== BUSCADOR (se abre con la lupa) ===================== */
.buscador { border-bottom: 3px solid var(--borde); background: var(--tarjeta); }
.buscador .ancho { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.buscador input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 3px solid var(--borde); border-radius: 10px;
  background: var(--fondo); color: var(--texto);
  font: 600 16px 'Plus Jakarta Sans', sans-serif;   /* 16px evita el zoom automático de iPhone */
}
.buscador input:focus { outline: 3px solid var(--mango); outline-offset: 1px; }

/* ===================== CINTA ANIMADA DE TIENDAS ===================== */
.cinta {
  background: var(--cinta-fondo); color: var(--cinta-texto);
  overflow: hidden; border-bottom: 3px solid var(--borde);
  height: 38px; display: flex; align-items: center;
}
.cinta-mueve {
  display: flex; gap: 22px; white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1px;
  animation: cinta 14s linear infinite;
}
@keyframes cinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================== PORTADA GRANDE ===================== */
.hero-d { padding-top: 26px; padding-bottom: 22px; position: relative; }
.sticker {
  position: absolute; right: 18px; top: 18px;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--oferta); color: var(--tinta);
  border: 3px solid var(--borde); box-shadow: 4px 4px 0 var(--borde);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: brinca 1.6s ease-in-out infinite;
}
.sticker b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; line-height: 1; }
.sticker small { font-size: 10px; font-weight: 700; }
@keyframes brinca {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50%      { transform: rotate(8deg) scale(1.08); }
}
/* El antetítulo deja espacio a la derecha para que el sticker no lo tape */
.antetitulo {
  margin: 0 0 10px; padding-right: 88px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
}
.hero-d h1 {
  margin: 0; max-width: 290px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 44px; line-height: 0.98; letter-spacing: -1.5px;
}
.hero-d h1 span {
  display: inline-block; transform: rotate(-2deg);
  background: var(--mango); color: var(--tinta);
  padding: 0 6px; border: 3px solid var(--borde); border-radius: 10px;
}
.hero-d .bajada { margin: 16px 0 20px; font-size: 15px; line-height: 1.5; }
.btn-hero {
  display: flex; align-items: center; justify-content: center; height: 54px;
  background: var(--mango); color: var(--tinta);
  border: 3px solid var(--borde); border-radius: 10px; box-shadow: 5px 5px 0 var(--borde);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px;
  text-decoration: none;
}
.btn-hero:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--borde); }

/* ===================== CHIPS DE CATEGORÍA (fila deslizable) ===================== */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 22px;
  scrollbar-width: none; scroll-margin-top: 12px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 44px; padding: 0 16px;   /* área táctil mínima de 44px (CR-01) */
  border: 3px solid var(--borde); border-radius: 20px;
  background: var(--tarjeta); color: var(--texto);
  font: 700 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--chip-activo-fondo); color: var(--chip-activo-texto); }

/* ===================== OFERTAS ===================== */
.ofertas { scroll-margin-top: 12px; }
.bloque { padding-bottom: 26px; }

/* Barra de aviso cuando hay filtro (flash o búsqueda) */
.filtro-activo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px; padding: 10px 12px;
  border: 3px solid var(--borde); border-radius: 16px; background: var(--tarjeta);
  font-weight: 700; font-size: 14px;
}
.btn-texto {
  background: none; border: 0; padding: 0 4px; min-height: 44px;
  color: var(--texto); font: 700 14px 'Plus Jakarta Sans', sans-serif;
  text-decoration: underline; cursor: pointer; white-space: nowrap;
}

/* --- Bloque de color con icono (cuando no hay foto real) y foto real encima --- */
.foto {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--color-bloque, var(--mango));
  border-bottom: 3px solid var(--borde);
}
.foto .foto-real {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pill-tienda {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  background: var(--tinta); color: var(--crema);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.badge-off {
  position: absolute; right: 8px; top: 8px; z-index: 1;
  background: var(--oferta); color: var(--tinta);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  padding: 3px 7px; border: 2px solid var(--tinta); border-radius: 6px; transform: rotate(4deg);
}

/* ---- ELEMENTO FIRMA: etiqueta de precio colgante -4°, punta a la izquierda,
        sombra dura desplazada (drop-shadow para que siga la forma del clip-path) ---- */
.tag { filter: drop-shadow(3px 3px 0 #1A1333); transform: rotate(-4deg); }
.tag-cuerpo {
  background: var(--mango); color: var(--tinta);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  padding: 4px 9px 4px 18px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.2;
  white-space: nowrap;
}
.tag-cuerpo small { font-size: 10px; }

/* --- Promo grande --- */
.promo {
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--borde); overflow: hidden;
  scroll-margin-top: 16px;
}
/* Resalte del producto que llega por enlace directo (?p=<id>) */
.promo.resaltado { outline: 5px solid var(--oferta); outline-offset: 3px; }
.promo .foto { height: 230px; }
.promo .pill-tienda { left: 12px; top: 12px; font-size: 12px; padding: 5px 10px; }
.promo .badge-off { right: 12px; top: 12px; font-size: 15px; padding: 4px 9px; border-radius: 8px; transform: none; }
.promo .tag { position: absolute; left: 14px; bottom: -22px; z-index: 2; filter: drop-shadow(4px 4px 0 #1A1333); }
.promo .tag-cuerpo {
  background: var(--crema); font-size: 30px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  padding: 6px 14px 6px 24px;
}
.promo .tag-cuerpo small { font-size: 13px; }
.promo-cuerpo { padding: 34px 16px 16px; }
.promo-titulo {
  margin: 0 0 6px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700; line-height: 1.3;
}
.promo-desc { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--suave); }
.acciones { display: flex; gap: 10px; }
.btn-oferta {
  flex-grow: 1; height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--mango); color: var(--tinta);
  border: 3px solid var(--borde); border-radius: 10px;
  font-weight: 800; font-size: 16px; text-decoration: none;
}
.btn-compartir {
  width: 50px; height: 50px; flex: 0 0 50px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--borde); border-radius: 10px;
  background: var(--fondo); color: var(--texto); cursor: pointer;
}

/* --- Parrilla 2×2 --- */
.titulo-seccion {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
}
.titulo-seccion h2 { margin: 0; font-size: 26px; }
.parrilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.tarjeta-d {
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--borde); overflow: hidden;
  display: flex; flex-direction: column;
}
.tarjeta-d .foto { height: 120px; }
/* Botón compartir pequeño en la esquina de la foto (área táctil de 44px) */
.tarjeta-d .btn-compartir-mini {
  position: absolute; right: 4px; bottom: 4px; z-index: 1;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.btn-compartir-mini span {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--crema); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 50%;
}
.tarjeta-d .cuerpo { padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.tarjeta-d h3 {
  margin: 0; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.fila-precio { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.antes { font-size: 12px; text-decoration: line-through; color: var(--suave); }
.btn-oferta-mini {
  margin-top: auto; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--btn-fondo); color: var(--btn-texto);
  border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none;
}

/* --- Estados de carga / vacío / error --- */
.aviso-estado { padding: 40px 0; text-align: center; color: var(--suave); font-size: 15px; }
.aviso-estado .spinner {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 4px solid var(--borde); border-top-color: var(--mango);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ===================== ASÍ DE FÁCIL (3 pasos) ===================== */
.pasos { padding-bottom: 30px; scroll-margin-top: 12px; }
.pasos h2 { margin: 0 0 14px; font-size: 26px; }
.pasos ol { list-style: none; display: grid; gap: 14px; }
.paso {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--borde); padding: 14px;
}
.paso-num {
  flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--mango); color: var(--tinta); border: 3px solid var(--borde); border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; transform: rotate(-4deg);
}
.paso h3 { margin: 2px 0 4px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.paso p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--suave); }

/* ===================== PIE LEGAL ===================== */
.pie-d {
  border-top: 3px solid var(--borde);
  /* espacio abajo para que la barra fija no tape el texto legal */
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  font-size: 12px; line-height: 1.55; color: var(--suave);
}
.pie-d .ancho { padding-top: 20px; }
.pie-d p { margin: 0 0 14px; }
.pie-d nav { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; font-size: 13px; }
.pie-d nav a { color: var(--texto); min-height: 24px; }
.pie-d nav a:hover { color: var(--oferta); }

/* ===================== BARRA INFERIOR FIJA ===================== */
.barra-abajo {
  position: fixed; z-index: 30;
  left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 616px; margin: 0 auto;
  height: 64px; display: flex; align-items: center; justify-content: space-around;
  background: var(--nav-fondo); border: 3px solid var(--nav-aro); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--mango);
}
.barra-abajo button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 56px; min-height: 52px; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--crema); font: 700 11px 'Plus Jakarta Sans', sans-serif;
}
.barra-abajo button.activo { color: var(--mango); }

/* ===================== AVISO FLOTANTE ("Enlace copiado") ===================== */
.toast {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--verde); color: var(--tinta);
  border: 3px solid var(--tinta); border-radius: 10px; box-shadow: 3px 3px 0 var(--tinta);
  padding: 10px 16px; font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* Quien pide menos movimiento: sin cinta ni sticker animados */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinta-mueve, .sticker, .aviso-estado .spinner { animation: none; }
}

/* Celulares angostos (≤370px): logo un poco más chico para que no choque con los botones */
@media (max-width: 370px) {
  .logo-texto { font-size: 17px; }
  .logo-cuadro { width: 28px; height: 28px; flex-basis: 28px; }
}

/* ===================================================================
   PÁGINAS LEGALES CON EL DISEÑO D (privacidad, cookies, términos, contacto)
   Usan body.portada (mismos colores y modo claro/oscuro) + esta caja de texto.
   =================================================================== */
.texto-legal { max-width: 680px; margin: 0 auto; padding: 26px 16px 34px; font-size: 16px; line-height: 1.6; }
.texto-legal h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 36px; line-height: 1.05; letter-spacing: -1px; margin: 0 0 8px;
}
.texto-legal .fecha {
  display: inline-block; margin-bottom: 20px; padding: 3px 10px;
  border: 2px solid var(--borde); border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
}
.texto-legal .intro { font-size: 17px; margin-bottom: 8px; }
.texto-legal h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 22px; line-height: 1.2; margin: 28px 0 8px; scroll-margin-top: 16px;
}
.texto-legal p { margin: 0 0 12px; }
.texto-legal ul { margin: 0 0 12px; padding-left: 22px; }
.texto-legal li { margin-bottom: 6px; }
.texto-legal a { color: var(--texto); font-weight: 700; text-decoration-color: var(--mango); text-decoration-thickness: 3px; }
/* Sección resaltada al llegar por enlace (#medicion) */
.texto-legal h2:target { background: var(--mango); color: var(--tinta); padding: 2px 8px; border-radius: 10px; }
/* Datos que John debe completar antes de salir al aire: fondo mango, bien visibles */
.pendiente {
  background: var(--mango); color: var(--tinta);
  padding: 1px 6px; border-radius: 6px; font-weight: 700;
}
/* Caja destacada (correo de contacto, etc.) */
.caja-legal {
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--borde); padding: 14px 16px; margin: 16px 0;
}
.caja-legal strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
/* Botón "Volver a las ofertas" */
.btn-volver {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 22px; padding: 0 18px;
  background: var(--mango); color: var(--tinta) !important; text-decoration: none !important;
  border: 3px solid var(--borde); border-radius: 10px; box-shadow: 4px 4px 0 var(--borde);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px;
}
/* Barra inferior de las legales: son enlaces en vez de botones */
.barra-abajo a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 56px; min-height: 52px; justify-content: center;
  color: var(--crema); text-decoration: none; font: 700 11px 'Plus Jakarta Sans', sans-serif;
}
/* Enlace pequeño de privacidad bajo el pie de la portada */
.pie-d .nota-privacidad { margin-top: 12px; font-size: 12px; }
.pie-d .nota-privacidad a { color: var(--texto); font-weight: 700; }

/* ===================================================================
   PORTADA "E · TEMPORADA" (T-013) — referencia: diseno/portada-E-temporada.dc.html
   Debajo sigue todo lo del diseño D (chips, "Más ofertas", pasos, pie).
   =================================================================== */

/* --- Barra inferior: ahora mezcla botón (Inicio) y enlaces (Regalos, Top 10, Blog) --- */
.barra-abajo a.activo { color: var(--mango); }

/* --- Bloque de temporada: siempre fondo tinta (Halloween y Navidad) --- */
.temp {
  background: var(--tinta); color: var(--crema);
  border-bottom: 3px solid var(--borde); position: relative; overflow: hidden;
}
.temp .ancho { padding-top: 22px; padding-bottom: 26px; position: relative; }
.temp-icono { position: absolute; right: 14px; top: 16px; animation: flota 2.6s ease-in-out infinite; }
@keyframes flota { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(-8deg); } }
.temp-ante {
  margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 2px; color: var(--mango);
}
.temp h1 {
  margin: 8px 0 0; max-width: 260px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 40px; line-height: 0.98; letter-spacing: -1.5px;
}
.temp h1 span { color: var(--mango); }
.contador { display: flex; gap: 6px; align-items: center; margin-top: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.contador .cifra {
  background: var(--mango); color: var(--tinta); border-radius: 8px; padding: 4px 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.2;
}
.temp-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.temp-chip {
  height: 44px; padding: 0 14px; border: 2px solid var(--crema); border-radius: 22px;
  background: transparent; color: var(--crema); cursor: pointer;
  font: 700 14px 'Plus Jakarta Sans', sans-serif;
}
.temp-chip[aria-pressed="true"] { background: var(--crema); color: var(--tinta); }
#temp-lista { margin-top: 18px; }
.temp-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.temp-card {
  background: var(--crema); color: var(--tinta); border: 3px solid var(--crema); border-radius: 16px;
  overflow: hidden; box-shadow: 5px 5px 0 var(--mango); display: flex; flex-direction: column;
}
.temp-card .foto { height: 120px; border-bottom-color: var(--tinta); }
.temp-card-cuerpo { padding: 10px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.temp-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3; }
.temp-card .tag { align-self: flex-start; }
.temp-card .btn-oferta-mini { background: var(--tinta); color: var(--mango); }
/* Parrilla dentro de la temporada: tarjetas claras sobre fondo tinta */
.temp-parrilla .tarjeta-d { background: var(--crema); color: var(--tinta); border-color: var(--crema); box-shadow: 5px 5px 0 var(--mango); }
.temp-parrilla .tarjeta-d .foto { border-bottom-color: var(--tinta); }
.temp-parrilla .btn-oferta-mini { background: var(--tinta); color: var(--mango); }
.temp-parrilla .antes { color: #5A5370; }
.temp-ver {
  width: 100%; margin-top: 16px; min-height: 50px; padding: 0 12px;
  background: var(--mango); color: var(--tinta); border: 3px solid var(--crema); border-radius: 10px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px; cursor: pointer;
}
.temp-vacio { margin-top: 6px; font-size: 15px; color: var(--crema); opacity: .85; }

/* --- Títulos de sección y antetítulos --- */
.antetitulo-sec { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--suave); }
.antetitulo-sec.oferta-color { color: var(--oferta); }
.bajada-sec { margin: 6px auto 14px; font-size: 14px; color: var(--suave); }
.cuenta { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; color: var(--suave); white-space: nowrap; }

/* --- Lo más caliente: fila que se mueve sola (y se desliza a mano) --- */
.caliente { padding: 24px 0 22px; }
.caliente .titulo-seccion { margin-bottom: 0; }
.rueda { overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; }
.rueda::-webkit-scrollbar { display: none; }
.rueda:focus-visible { outline: 3px solid var(--mango); outline-offset: -3px; }
.rueda-pista { display: flex; gap: 12px; width: max-content; padding: 0 16px; }
.rueda-item {
  flex: 0 0 150px; background: var(--tarjeta); color: var(--texto); text-decoration: none;
  border: 3px solid var(--borde); border-radius: 16px; box-shadow: 4px 4px 0 var(--borde);
  overflow: hidden; display: flex; flex-direction: column;
}
.rueda-foto {
  height: 104px; position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--color-bloque, var(--mango)); border-bottom: 3px solid var(--borde);
}
.rueda-foto .foto-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sello-tendencia {
  position: absolute; left: 6px; top: 6px; z-index: 1;
  background: var(--oferta); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 11px; padding: 1px 6px;
}
.rueda-titulo { margin: 8px 8px 6px; font-size: 13px; font-weight: 700; line-height: 1.3; height: 34px; overflow: hidden; }
.rueda-precio { margin: 0 8px 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; }

/* --- Regalos que sí van a gustar --- */
.regalos { padding-bottom: 26px; scroll-margin-top: 12px; }
.caja-regalos {
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--borde); padding: 18px 14px;
}
.caja-regalos h2 { margin: 4px 0 14px; font-size: 26px; }
.pestanas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.pestana {
  height: 44px; border: 3px solid var(--borde); border-radius: 10px;
  background: var(--tarjeta); color: var(--texto); cursor: pointer; font: 700 14px 'Plus Jakarta Sans', sans-serif;
}
.pestana[aria-pressed="true"] { background: var(--chip-activo-fondo); color: var(--chip-activo-texto); }
.bolsillo { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.bolsillo-chip {
  min-height: 44px; padding: 0 12px; border: 2px solid var(--borde); border-radius: 20px;
  background: transparent; color: var(--texto); cursor: pointer; font: 700 13px 'Plus Jakarta Sans', sans-serif;
}
.bolsillo-chip[aria-pressed="true"] { background: var(--chip-activo-fondo); color: var(--chip-activo-texto); }
.lista-regalos { display: grid; gap: 10px; }
.regalo-fila {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--texto);
  border: 2px solid var(--borde); border-radius: 14px; padding: 8px; min-height: 80px;
}
.regalo-foto {
  flex: 0 0 64px; height: 64px; border-radius: 10px; position: relative; overflow: hidden;
  background: var(--color-bloque, var(--mango)); border: 2px solid var(--tinta);
  display: flex; align-items: center; justify-content: center;
}
.regalo-foto .foto-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.regalo-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.regalo-titulo { font-weight: 700; font-size: 14px; line-height: 1.3; }
.regalo-precio { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; }
.regalo-precio s { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 12px; color: var(--suave); }
.regalo-flecha { font-weight: 800; font-size: 20px; }
.btn-ver-mas {
  width: 100%; margin-top: 14px; min-height: 48px; padding: 0 12px;
  background: var(--mango); color: var(--tinta); border: 3px solid var(--borde); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--borde); cursor: pointer;
  font: 800 15px 'Plus Jakarta Sans', sans-serif;
}
.ofertas .btn-ver-mas { margin: 0 0 30px; }

/* --- Los más vendidos (tarjetas "10 + título") --- */
.top10 { padding-bottom: 26px; scroll-margin-top: 12px; }
.top10 h2 { margin: 4px 0 14px; font-size: 26px; }
.top10-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.top10-card {
  text-decoration: none; background: var(--color-bloque); color: var(--tinta);
  border: 3px solid var(--borde); border-radius: 16px; box-shadow: 4px 4px 0 var(--borde);
  padding: 12px; min-height: 120px; display: flex; flex-direction: column; gap: 6px;
}
.top10-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 40px; line-height: 0.9; }
.top10-nombre { font-weight: 700; font-size: 14px; line-height: 1.25; }

/* --- Del blog --- */
.del-blog { border-top: 3px solid var(--borde); padding-top: 18px; padding-bottom: 26px; }
.del-blog h2 { margin: 0 0 12px; font-size: 22px; }
.del-blog-lista { display: grid; gap: 14px; margin-bottom: 4px; }
.del-blog-item { text-decoration: none; display: grid; gap: 4px; color: var(--texto); }
.del-blog-meta { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; color: var(--suave); }
.del-blog-titulo { font-weight: 700; font-size: 16px; line-height: 1.3; }
.del-blog .btn-texto { display: inline-flex; align-items: center; }

/* Chip "Flash" en la fila de categorías */
.chip-flash[aria-pressed="false"] { border-color: var(--oferta); }

/* ===================================================================
   BLOG (T-013) — referencia: diseno/blog-F-articulo.dc.html
   Páginas generadas por herramientas/armar-catalogo.py
   =================================================================== */
.sello-blog {
  display: flex; align-items: center; height: 44px; padding: 0 9px; white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1px;
  border: 2px solid var(--borde); border-radius: 20px;
}
.articulo { padding-top: 18px; padding-bottom: 30px; }
.migas { margin: 0 0 10px; font-size: 13px; color: var(--suave); }
.migas a { color: var(--texto); }
.art-titulo { display: flex; gap: 12px; align-items: flex-start; }
.sello-top {
  flex: 0 0 64px; height: 64px; border-radius: 50%; transform: rotate(-6deg);
  background: var(--oferta); color: var(--tinta); border: 3px solid var(--borde); box-shadow: 3px 3px 0 var(--borde);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sello-top b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; line-height: 1; }
.sello-top small { font-size: 9px; font-weight: 700; }
.art-titulo h1, .blog-h1 {
  margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 30px; line-height: 1.02; letter-spacing: -1px;
}
.blog-h1 { font-size: 36px; }
.art-datos { margin: 12px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; color: var(--suave); letter-spacing: .5px; }
.art-intro { margin: 14px 0 0; font-size: 16px; line-height: 1.55; }
.art-fuente {
  margin: 10px 0 0; padding: 10px 12px; background: var(--tarjeta);
  border: 2px solid var(--borde); border-radius: 12px; font-size: 13px; line-height: 1.45;
}
.art-fuente a { font-weight: 700; }
.indice { margin: 18px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.indice a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--borde); border-radius: 8px; background: var(--tarjeta); color: var(--texto);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; text-decoration: none;
}
.indice a.top3 { background: var(--mango); color: var(--tinta); }
.puestos { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 22px; }
.puesto { display: grid; gap: 10px; border-top: 3px solid var(--borde); padding-top: 14px; scroll-margin-top: 12px; }
.puesto-cabeza { display: flex; gap: 12px; align-items: center; }
.puesto-num {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 56px; line-height: 0.85;
  color: var(--color-num); -webkit-text-stroke: 2px var(--borde);
}
.puesto h2 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.25; }
.puesto-foto {
  height: 170px; border: 3px solid var(--borde); border-radius: 16px; position: relative;
  background: var(--color-bloque); display: flex; align-items: center; justify-content: center;
}
.puesto-foto .foto-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.puesto-foto .tag { position: absolute; left: 10px; bottom: -16px; z-index: 1; }
.puesto-foto .tag-cuerpo { font-size: 22px; }
.porque { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.pos-amazon { color: var(--suave); font-size: 13px; }
.puesto .btn-oferta { height: 48px; flex-grow: 0; }
.interes { margin-top: 28px; border-top: 3px solid var(--borde); padding-top: 16px; }
.interes h2 { margin: 0 0 12px; font-size: 22px; }
.interes div { display: grid; gap: 4px; }
.interes a { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--texto); }
/* Índice del blog */
.art-lista { display: grid; gap: 12px; margin-top: 18px; }
.art-fila {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--texto);
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 16px; box-shadow: 4px 4px 0 var(--borde); padding: 12px;
}
.art-num {
  flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--color-bloque); color: var(--tinta);
  border: 3px solid var(--borde); display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 28px;
}
.art-fila > span:last-child { display: grid; gap: 2px; }
.art-meta { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; color: var(--suave); }
.art-nombre { font-weight: 700; font-size: 16px; line-height: 1.3; }

/* Quien pide menos movimiento: calabaza quieta */
@media (prefers-reduced-motion: reduce) {
  .temp-icono { animation: none; }
}
