/* ===================================================================
   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; }
