/* ==========================================================================
   Garage Watches — design system
   Aesthetic: clean, light, trustworthy ecommerce. White ground, one confident
   navy-blue accent, soft elevation (no harsh shadows), single type family
   (Archivo) carrying both display and body via weight contrast.
   ========================================================================== */

/* Space Grotesk servida desde nuestro propio dominio (assets/fonts/) en vez de Google Fonts --
   así ningún visitante se conecta a servidores de Google solo por cargar la web (coherente
   con "no compartimos tus datos con terceros" de la política de privacidad). Un único archivo
   variable cubre los 4 pesos, igual que hace Google por debajo -- por eso las 4 reglas
   apuntan al mismo .woff2. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f6f7f9;
  --color-surface-2: #eef0f3;

  /* Text */
  --color-text: #14161a;
  --color-text-muted: #666b74;

  /* Ink / dark band (footer, trust strip, hero photo) */
  --color-navy: #111111;
  --color-navy-2: #1a1a1a;
  --color-navy-text-muted: #a8a498;

  /* Lines */
  --color-border: #e3e5e9;
  --color-border-strong: #d3d6dc;

  /* Brand — warm golden-yellow, paired with black for an exclusive/handmade feel */
  --color-accent: #d9a828;
  --color-accent-hover: #e6bc4a;
  --color-accent-soft: #faf3e4;
  --color-accent-ink: #14161a;
  --color-success: #1a7f4b;
  --color-danger: #c0342a;

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Space */
  --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;
  --space-9: 8rem;

  /* Shape */
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow-card-hover: 0 8px 24px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
  --shadow-pop: 0 2px 6px rgba(16,24,40,.10);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1); /* deceleración suave, sin arranque brusco — para entradas grandes (hero) */
  --container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p { margin: 0 0 var(--space-4); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
section { position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-card); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn-success { display: inline-flex !important; align-items: center; justify-content: center; background: var(--color-success) !important; border-color: var(--color-success) !important; color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--color-text); transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Header ---------- */
.announce {
  background: #fff;
  color: var(--color-text);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}
.logo-icon { height: 34px; width: auto; display: block; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-wordmark { height: 22px; width: auto; display: block; }
.logo-full { height: 46px; width: auto; display: block; }
@media (max-width: 640px) {
  .logo { gap: 0.35rem; }
  .logo-icon { height: 26px; }
  .logo-wordmark { height: 15px; }
  .logo-full { height: 34px; }
  .site-header .container { padding-top: var(--space-3); padding-bottom: var(--space-3); gap: var(--space-3); }
  .header-actions { gap: var(--space-2); }
  .lang-switch summary { font-size: 0; padding: 0.3rem 0.4rem; gap: 0.25rem; }
  .lang-switch .lang-code { font-size: 0.7rem; }
  .lang-switch summary::after { font-size: 0.5rem; }
}
.site-header .logo { color: #fff; }
.logo span.tag {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 700;
  margin-top: 3px;
}
.main-nav {
  display: none;
  gap: var(--space-6);
  font-size: 0.88rem;
  font-weight: 600;
}
.main-nav a { position: relative; padding: var(--space-2) 0; color: #fff; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  transition: right .2s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--color-text);
  padding: var(--space-2);
  display: inline-flex;
}
.site-header .icon-btn { color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-switch { position: relative; font-size: 0.75rem; font-weight: 600; }
.lang-switch summary {
  display: flex; align-items: center; gap: 0.35rem; list-style: none; cursor: pointer;
  padding: 0.35rem 0.55rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: '▾'; font-size: 0.55rem; opacity: .7; }
.lang-switch[open] summary::after { content: '▴'; }
.lang-switch .flag { display: inline-flex; line-height: 0; }
.lang-switch .flag svg { width: 18px; height: 13px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.lang-switch .lang-code { text-transform: uppercase; }
.lang-switch .lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; z-index: 200;
  background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover); overflow: hidden;
}
.lang-switch .lang-menu a { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; color: var(--color-text); font-weight: 500; }
.lang-switch .lang-menu a:hover { background: var(--color-surface); }
.site-header .lang-switch summary { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.nav-toggle { display: inline-flex; background: none; border: none; color: var(--color-text); }
.site-header .nav-toggle { color: #fff; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-7); }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--color-text); }
.mobile-nav .close-btn { position: absolute; top: var(--space-5); right: var(--space-5); background: none; border: none; color: var(--color-text); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--color-border); }
/* Foto a todo el ancho de la ventana (no del container), casi a pantalla completa.
   Texto anclado abajo, sobre la zona más tranquila de la foto — no tapa el reloj/sujeto. */
.hero-photo {
  position: relative;
  width: 100%;
  height: clamp(560px, 92vh, 820px);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
/* El hero no se anima al entrar: está puesto desde el primer fotograma. Por eso su
   marca no lleva la clase `reveal` -- lo que sube al aparecer es lo de más abajo. */
/* Vídeo del taller en el hero. Va encima de la foto (que es su primer fotograma) y aparece
   con un fundido cuando ya puede reproducirse, así que nunca se ve un hueco ni un salto. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.hero-video.is-on { opacity: 1; }

/* El velo oscuro que deja leer el texto blanco. Se reforzó al poner el vídeo: la foto
   anterior era bastante oscura de por sí y bastaba con un velo suave, pero el vídeo es
   claro (esfera blanca, luz de estudio) y el título se perdía encima. En móvil va más
   cargado todavía porque el texto ocupa mucha más parte del encuadre. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.22) 0%, rgba(10,10,10,.40) 50%, rgba(10,10,10,.86) 100%);
}
@media (max-width: 640px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(10,10,10,.34) 0%, rgba(10,10,10,.56) 38%, rgba(10,10,10,.90) 100%);
  }
}
.hero-photo .container { position: relative; padding-bottom: var(--space-8); }
@media (max-width: 640px) { .hero-photo .container { padding-bottom: var(--space-6); } }
.hero-copy { max-width: 640px; margin: 0 auto; }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.75); }
.hero-photo .hero-copy p { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-photo .eyebrow, .hero-photo .countdown-num, .hero-photo .countdown-label {
  text-shadow: 0 2px 12px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.85);
}

.hero-title-sm { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero-signup { text-align: center; margin-top: var(--space-5); }
.hero-signup .eyebrow { font-size: 2.2rem; }
.hero-signup p { margin: var(--space-2) 0 var(--space-4); }
.hero-signup form { display: flex; gap: var(--space-2); max-width: 420px; margin: 0 auto; }
.hero-signup input {
  flex: 1; min-width: 0; padding: 0.8rem 1rem; border: 1.5px solid transparent; border-radius: var(--radius);
  background: #fff; color: var(--color-text); font-size: 1rem;
}
.countdown { display: flex; justify-content: center; gap: var(--space-6); margin: 0 0 var(--space-5); }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 4.6rem; }
.countdown-num { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; color: #fff; line-height: 1; }
.countdown-label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-navy-text-muted); margin-top: var(--space-1); }
@media (max-width: 480px) {
  .hero-signup .eyebrow { font-size: 1.5rem; }
  .countdown { gap: var(--space-2); }
  .countdown-item { min-width: 2.6rem; }
  .countdown-num { font-size: 1.7rem; }
}
.hero-subcopy p.reveal-right { transition-delay: 3s; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,.45);
  padding-bottom: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero-link:hover { border-color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-6); }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-photo .btn-ghost:hover { border-color: #fff; }

/* Trust strip / stat bar — the one dark moment on an otherwise light page */
.stat-bar {
  background: var(--color-navy);
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  background: var(--color-navy);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: #fff; }
.stat span { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--color-navy-text-muted); text-transform: uppercase; }
@media (max-width: 480px) {
  .stat { padding: var(--space-4) var(--space-2); }
  .stat strong { font-size: 1.15rem; }
}

/* ---------- Section headers ---------- */
.section { padding: var(--space-8) 0; }
@media (max-width: 640px) { .section { padding: var(--space-6) 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head-center { justify-content: center; text-align: center; }
.section-head p { color: var(--color-text-muted); max-width: 46ch; margin: 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* ---------- Product grid / card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex;
  flex-direction: column;
}
/* Especificidad extra a propósito: que gane sobre .card y .reveal por separado
   y así no se pisen sus respectivas transiciones (colisión de shorthand). */
.card.reveal {
  transition: opacity 1.2s var(--ease), translate 1.2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--color-border-strong); }
.card-media {
  aspect-ratio: 1;
  position: relative;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.005em; }
.card-price { color: var(--color-accent); font-weight: 700; margin-top: auto; }
.card-price .was { color: var(--color-text-muted); text-decoration: line-through; margin-right: var(--space-2); font-weight: 400; }
.cart-line .card-price { color: var(--color-text); }

.badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  z-index: 2;
}
.badge-new { background: var(--color-accent); color: var(--color-accent-ink); }
.badge-hand { background: var(--color-text); color: #fff; }
/* Título de cada apartado dentro de la rejilla de la tienda (Ediciones, Hechos a mano). */
.grid-group { grid-column: 1 / -1; margin: var(--space-4) 0 0; font-size: 1.25rem; }
.grid-group:first-child { margin-top: 0; }
.badge-soldout { background: #14171f; color: #fff; border: 1px solid #14171f; }
.badge-pocas { background: #c2410c; color: #fff; }

/* Placeholder "photo pendiente" box — swapped automatically once a real image loads */
.img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  background: var(--color-surface);
  text-align: center;
  padding: var(--space-3);
}
.img-placeholder svg { width: 30%; max-width: 56px; opacity: 0.55; }
.img-placeholder small { font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase; }
.img-placeholder:has(+ img), .img-placeholder:has(+ video) { display: none; }
.card-media img, .hero-photo img, .about-photo img, .cart-line-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.gallery-main img, .gallery-thumbs button img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.gallery-main img[data-i="3"], .gallery-thumbs button:nth-child(4) img {
  object-fit: contain;
}
@keyframes gallery-slide-in {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.gallery-main img { animation: gallery-slide-in .35s var(--ease) both; }
/* Vídeo de los hechos a mano: se ve ENTERO (contain), no recortado como las fotos. Suelen
   grabarse en vertical con el móvil y, recortado al cuadrado, se perdía casi la mitad y
   parecía todo ampliado. Lo que sobra a los lados queda del color del fondo de la galería. */
.gallery-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--color-surface); animation: gallery-slide-in .35s var(--ease) both; }
.thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 23, 31, .72); color: #fff;
}
.thumb-play svg { width: 16px; height: 16px; margin-left: 2px; }
.gallery-stage { position: absolute; inset: 0; }
.gallery-main.gallery-has-nav { cursor: none; }
.gallery-cursor {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10, 10, 10, .62);
  display: flex; align-items: center; justify-content: center;
  color: #fff; pointer-events: none; z-index: 5;
  transform: translate(-50%, -50%) scale(.85);
  opacity: 0; transition: opacity .15s var(--ease), transform .15s var(--ease);
  box-shadow: 0 0 0 6px rgba(10, 10, 10, .1), 0 4px 14px rgba(0, 0, 0, .22);
}
.gallery-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-cursor svg { width: 16px; height: 16px; transition: opacity .15s var(--ease); }
.gallery-cursor.is-left svg { transform: rotate(180deg); }
.gallery-cursor.is-disabled svg { opacity: 0; }

/* Botón de ampliar (esquina de la foto) y visor a pantalla completa (render-products.js). */
.gallery-ampliar {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .55); color: #fff; cursor: pointer;
  transition: background .15s var(--ease);
}
.gallery-ampliar:hover { background: rgba(10, 10, 10, .78); }
.gallery-ampliar svg { width: 18px; height: 18px; }
.gallery-main:has(.gallery-ampliar:hover) .gallery-cursor { opacity: 0; }
.visor {
  position: fixed; inset: 0; z-index: 900; background: #0b0b0b;
  opacity: 0; transition: opacity .2s var(--ease); touch-action: manipulation;
}
.visor.abierto { opacity: 1; }
.visor-pista {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.visor-pista::-webkit-scrollbar { display: none; }
.visor.con-zoom .visor-pista { overflow: hidden; }
.visor-foto {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.visor-foto img, .visor-foto video {
  max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none;
}
.visor-foto img { cursor: zoom-in; }
.visor-foto.con-zoom { display: block; overflow: auto; scrollbar-width: none; }
.visor-foto.con-zoom::-webkit-scrollbar { display: none; }
.visor-foto.con-zoom img { max-width: none; max-height: none; display: block; cursor: zoom-out; }
.visor-barra {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px 18px;
  background: linear-gradient(rgba(8, 8, 8, .6), rgba(8, 8, 8, 0)); pointer-events: none;
}
.visor-cuenta { color: rgba(255, 255, 255, .85); font-size: .9rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.visor-cerrar, .visor-flecha {
  pointer-events: auto; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s var(--ease), opacity .15s var(--ease);
}
.visor-cerrar { width: 44px; height: 44px; }
.visor-cerrar svg { width: 22px; height: 22px; }
.visor-cerrar:hover, .visor-flecha:hover { background: rgba(255, 255, 255, .24); }
.visor-flecha {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; transform: translateY(-50%);
}
.visor-flecha svg { width: 20px; height: 20px; }
.visor-ant { left: 10px; }
.visor-ant svg { transform: rotate(180deg); }
.visor-sig { right: 10px; }
.visor-flecha:disabled { opacity: 0; pointer-events: none; }
.visor.con-zoom .visor-flecha { opacity: 0; pointer-events: none; }
@media (min-width: 900px) {
  .visor-flecha { width: 52px; height: 52px; }
  .visor-ant { left: 24px; }
  .visor-sig { right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .visor { transition: none; } }

/* ---------- Founder / about ---------- */
.about-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
/* La foto del taller es apaisada (2000x1314): con la proporción vertical de abajo se
   perdería medio banco de trabajo, así que esa va con `is-wide`. */
.about-photo.is-wide { aspect-ratio: 3/2; }
.about-photo {
  aspect-ratio: 4/5;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--color-navy);
  color: #fff;
}
.newsletter .container { padding-top: var(--space-7); padding-bottom: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.newsletter h2 { margin: 0; }
.newsletter form { display: flex; gap: var(--space-2); flex: 1; min-width: 260px; max-width: 420px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}
.newsletter .btn { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.newsletter .btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: var(--color-navy-text-muted); padding: var(--space-8) 0 var(--space-5); }
@media (max-width: 640px) {
  .site-footer { padding-top: var(--space-6); }
  .newsletter .container { padding-top: var(--space-5); padding-bottom: var(--space-5); }
  .footer-grid { gap: var(--space-5); }
}
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1.3fr repeat(2, 1fr); }
.footer-grid .logo { color: #fff; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-3); }
.footer-grid li { margin-bottom: var(--space-2); font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a { border: 1px solid rgba(255,255,255,.18); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); justify-content: space-between; font-size: 0.78rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Trust note (checkout) ---------- */
.checkout-terms { display: flex; align-items: flex-start; gap: var(--space-2); font-size: .78rem; color: var(--color-text-muted); margin-bottom: var(--space-3); cursor: pointer; }
.checkout-terms input { flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; accent-color: var(--color-accent); }
.checkout-terms a { color: inherit; text-decoration: underline; }
.trust-note { display: flex; align-items: flex-start; gap: var(--space-2); font-size: .78rem; color: var(--color-text-muted); margin-top: 1.25rem; }
.trust-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--color-success); }
.pdp-disclaimer { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.pdp-disclaimer svg { color: var(--color-accent); }
.pdp-disclaimer a { color: inherit; text-decoration: underline; }

/* ---------- Payment method badges (footer + product page) ---------- */
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.footer-trust { justify-content: center; }
.footer-trust .pm-badge { border-radius: 6px; padding: .37rem .58rem; height: 30px; }
.footer-trust .pm-badge svg { height: 16px; }
.footer-trust .pm-googlepay .gpay-text { font-size: 12px; }
.pdp-trust { margin-top: var(--space-5); }
.pm-badge { display: inline-flex; align-items: center; justify-content: center; gap: .25em; background: #fff; border-radius: 9px; padding: .55rem .86rem; height: 45px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pm-badge svg { height: 24px; width: auto; display: block; }
.pm-googlepay .gpay-text { font-family: var(--font-body); font-weight: 600; font-size: 18px; color: #3c4043; }
.pm-visa { color: #1A1F71; }
.pm-mastercard { color: #000; }
.pm-amex { color: #006FCF; }
.pm-applepay { color: #000; }
.pm-googlepay { color: #3c4043; }
.pm-paypal { gap: 0; font-family: Verdana, Arial, sans-serif; font-weight: 700; font-style: italic; font-size: 17px; letter-spacing: -.02em; }
.pm-paypal .pp-a { color: #003087; }
.pm-paypal .pp-b { color: #009cde; }
.pm-klarna { background: #ffb3c7; color: #0a0b09; font-family: var(--font-body); font-weight: 800; font-size: 16px; letter-spacing: -.01em; box-shadow: none; }
.footer-trust .pm-paypal { font-size: 12px; }
.footer-trust .pm-klarna { font-size: 11.5px; }
.cart-trust { margin-top: var(--space-3); justify-content: center; }
.cart-trust .pm-badge { height: 34px; padding: .4rem .6rem; border-radius: 7px; }
.cart-trust .pm-badge svg { height: 18px; }
.cart-trust .pm-googlepay .gpay-text { font-size: 13px; }
.cart-trust .pm-paypal { font-size: 13px; }
.cart-trust .pm-klarna { font-size: 12.5px; }

/* Ficha: debajo del botón de compra, cuándo llega, la devolución y el pago. */
.pdp-promesas { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.pdp-promesas li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .88rem; line-height: 1.35; }
.pdp-promesas svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--color-accent); }
.pdp-promesas strong { display: block; }
.pdp-promesas small { display: block; color: var(--color-text-muted); font-size: .8rem; }
.pdp-promesas a { color: inherit; }

/* Carrito: segundo reloj con el ahorro del pack. */
.upsell { margin-top: var(--space-5); padding: var(--space-4); border: 1px solid var(--color-accent); border-radius: var(--radius); background: var(--color-accent-soft); }
.upsell[hidden] { display: none; }
.upsell-titulo { margin: 0 0 var(--space-3); font-size: 1rem; }
.upsell-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.upsell-item { display: flex; flex-direction: column; gap: 4px; background: var(--color-bg); border-radius: var(--radius-sm); padding: var(--space-2); font-size: .82rem; }
.upsell-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
.upsell-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upsell-nombre { font-weight: 700; line-height: 1.2; }
.upsell-precio { color: var(--color-text-muted); }
.upsell-ahorro { color: var(--color-accent-ink); font-weight: 700; }
.upsell-item .btn { margin-top: auto; width: 100%; }
.upsell-ver { display: inline-block; margin-top: var(--space-3); font-size: .85rem; font-weight: 600; color: inherit; }
@media (max-width: 480px) { .upsell-lista { gap: var(--space-2); } .upsell-item { padding: 6px; font-size: .76rem; } .upsell-item .btn { padding: .45rem .3rem; font-size: .78rem; } }
.drawer-nudge { margin: 0 0 var(--space-3); }
.drawer-nudge a { color: inherit; font-weight: 700; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,27,48,0.45); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); z-index: 300; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: -8px 0 32px rgba(16,24,40,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5); border-bottom: 1px solid var(--color-border); }
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.cart-empty { color: var(--color-text-muted); text-align: center; padding: var(--space-8) 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center; }
.cart-line-media { width: 64px; height: 64px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); position: relative; overflow: hidden; background: var(--color-surface); }
.cart-line-name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.cart-line-meta { font-size: 0.75rem; color: var(--color-text-muted); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); }
.qty-control button { background: none; border: none; color: var(--color-text); width: 26px; height: 26px; }
.qty-control span { width: 24px; text-align: center; font-size: 0.85rem; }
.cart-line-remove { background: none; border: none; color: var(--color-text-muted); font-size: 0.72rem; text-decoration: underline; padding: 0; margin-top: var(--space-1); }
.cart-foot { padding: var(--space-5); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: var(--space-4); }

/* Toast */
.toast {
  position: fixed; bottom: var(--space-5); left: 50%;
  transform: translate(-50%, 20px);
  background: var(--color-navy); color: #fff;
  box-shadow: var(--shadow-card-hover);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--color-navy); color: #fff;
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  flex-wrap: wrap;
  z-index: 500;
  transform: translateY(110%);
  transition: transform .3s var(--ease);
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: .82rem; max-width: 640px; color: rgba(255,255,255,.9); }
.cookie-banner a { color: #fff; }
.cookie-banner .cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cookie-banner .btn-ghost:hover { border-color: #fff; }

/* Popup "Avisadme cuando vuelva" */
.notify-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(15,27,48,0.45);
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.notify-overlay.open { opacity: 1; pointer-events: auto; }
.notify-modal {
  background: var(--color-surface); border-radius: var(--radius); padding: var(--space-6);
  max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow-card-hover);
  transform: translateY(12px); transition: transform .25s var(--ease);
}
.notify-overlay.open .notify-modal { transform: translateY(0); }
.notify-modal [data-notify-close] { position: absolute; top: var(--space-3); right: var(--space-3); }
.notify-modal h3 { margin-bottom: var(--space-2); }
.notify-modal p { color: var(--color-text-muted); font-size: .9rem; margin: 0; }
.notify-modal form { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.notify-modal input {
  width: 100%; min-width: 0; padding: .9rem 1rem; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--color-text); background: var(--color-surface);
}
.notify-modal form button { width: 100%; }
/* Revisión del diseño a mano (/personalizar): WhatsApp o email, lo que prefiera el cliente. */
.review-modal textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; resize: vertical;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius); background: transparent; color: inherit;
}
.review-how { display: flex; flex-direction: column; gap: var(--space-2); font-size: .85rem; color: var(--color-text-muted); }
.review-canal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.review-canal label { position: relative; cursor: pointer; }
.review-canal input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.review-canal span {
  display: block; padding: 10px; text-align: center; font-weight: 600; font-size: .9rem; color: var(--color-text);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius);
}
.review-canal input:checked + span { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: var(--color-accent-soft); }
.review-canal input:focus-visible + span { outline: 2px solid var(--color-text); outline-offset: 2px; }
.review-modal [hidden] { display: none; }

/* Carrito: a dónde va el pedido (España gratis / resto de la UE). */
.ship-zone { margin: var(--space-3) 0; }
.ship-zone-label { font-size: .85rem; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.ship-zones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ship-zones label { position: relative; cursor: pointer; }
.ship-zones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ship-zones span {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; height: 100%;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius); font-size: .88rem;
}
.ship-zones small { color: var(--color-text-muted); font-size: .8rem; }
.ship-zones input:checked + span { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: var(--color-accent-soft); }
.ship-zones input:focus-visible + span { outline: 2px solid var(--color-text); outline-offset: 2px; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed; bottom: var(--space-5); right: var(--space-5);
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card-hover);
  z-index: 150;
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }
/* En el móvil del personalizador el botón de compra va pegado abajo: el de WhatsApp sube
   para no taparlo. */
@media (max-width: 899px) {
  body:has(.cz-buy) .whatsapp-fab { bottom: 110px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.78rem; color: var(--color-text-muted); padding: var(--space-4) 0; }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- PDP ---------- */
.pdp { display: grid; gap: var(--space-7); padding: var(--space-6) 0 var(--space-8); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; } }
/* Los hijos de una rejilla no encogen por debajo de su contenido a menos que se les diga.
   Sin esto, la tira de miniaturas (4 x 76 px + huecos = 340 px) estiraba la columna entera
   y en un movil de 320 px la foto del producto se salia por la derecha. Con min-width: 0
   la columna se ajusta al movil y son las miniaturas las que se deslizan, que es lo suyo. */
.pdp > * { min-width: 0; }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--color-border); border-radius: var(--radius); position: relative; overflow: hidden; background: var(--color-surface); }
.gallery-thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-4); overflow-x: auto; }
.gallery-thumbs button { flex: 1 0 76px; max-width: 76px; aspect-ratio: 1; border: 1px solid var(--color-border); border-radius: var(--radius-sm); position: relative; overflow: hidden; background: var(--color-surface); padding: 0; }
@media (min-width: 900px) { .gallery-thumbs button { flex-basis: 100px; max-width: 100px; } }
.gallery-thumbs button.active { border-color: var(--color-accent); border-width: 2px; }
.pdp-price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--color-accent); margin: var(--space-2) 0 var(--space-5); }
.option-group { margin-bottom: var(--space-5); }
.option-label { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.option-values { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.option-values button {
  padding: 0.55rem 1rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text); font-size: 0.85rem;
}
.option-values button.active { border-color: var(--color-accent); border-width: 1.5px; color: var(--color-accent); background: var(--color-accent-soft); }
.qty-row { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.pdp-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.pdp-specs { margin-top: var(--space-7); border-top: 1px solid var(--color-border); padding-top: var(--space-5); }
.pdp-specs ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-5); font-size: 0.88rem; color: var(--color-text-muted); }
.pdp-specs li::before { content: '— '; color: var(--color-accent); }
.stock-note { font-size: 0.82rem; display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); display: inline-block; }
.stock-dot.out { background: var(--color-danger); }
.stock-dot.pocas { background: #ea580c; box-shadow: 0 0 0 3px rgba(234, 88, 12, .2); }
[data-pdp-stock] strong { color: #c2410c; }

/* ---------- Shop filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-row button {
  padding: 0.5rem 1rem; border: 1px solid var(--color-border-strong); border-radius: 999px;
  background: transparent; color: var(--color-text-muted); font-size: 0.82rem; font-weight: 500;
}
.filter-row button.active { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* ---------- Cart page ---------- */
.cart-page-grid { display: grid; gap: var(--space-7); padding: var(--space-7) 0 var(--space-9); }
@media (min-width: 950px) { .cart-page-grid { grid-template-columns: 1.4fr 1fr; } }
.summary-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); position: sticky; top: 100px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: var(--space-3); font-size: 0.92rem; color: var(--color-text-muted); }
.summary-row[hidden] { display: none; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; border-top: 1px solid var(--color-border); padding-top: var(--space-4); margin: var(--space-4) 0 var(--space-5); }
.shipping-note { font-size: .76rem; color: var(--color-text-muted); margin: -0.5rem 0 var(--space-3); }

/* ---------- Delivery estimate (PDP widget + order summary) ---------- */
.delivery-estimate { background: var(--color-accent-soft); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5); font-size: 0.85rem; }
.delivery-estimate strong { display: block; margin-bottom: 2px; }
.delivery-estimate span { display: block; }
.delivery-estimate .delivery-breakdown { color: var(--color-text-muted); font-size: 0.8rem; }
.delivery-estimate small { display: block; color: var(--color-text-muted); margin-top: 4px; }
.ship-address { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.6; }

.delivery-widget { margin-top: var(--space-4); }
.delivery-widget label { display: block; font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.delivery-widget select {
  width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text); font-size: 0.88rem; margin-bottom: var(--space-3);
}
.delivery-widget .delivery-estimate { margin-bottom: 0; }
.delivery-estimate.delivery-unavailable { background: #fbeae8; }
.delivery-estimate.delivery-unavailable strong { color: var(--color-danger); }

.zone-blocked-note { background: #fbeae8; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-top: var(--space-3); font-size: 0.85rem; color: var(--color-danger); }
.zone-blocked-note a { color: inherit; text-decoration: underline; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 72ch; padding: var(--space-8) 0; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-6); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose li { margin-bottom: var(--space-2); }

/* ---------- Thanks page ---------- */
.thanks-box { text-align: center; padding: var(--space-9) 0; }
.thanks-icon { width: 72px; height: 72px; margin: 0 auto var(--space-5); color: var(--color-success); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Aparecen "desde abajo": empiezan desplazadas y transparentes, suben a su sitio
   cuando entran en el viewport (ver IntersectionObserver en js/ui.js). Usa la
   propiedad `translate` (no `transform`) para no chocar con el transform del hover. */
.reveal { opacity: 0; translate: 0 44px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Customizador de esfera (/personalizar) ---------- */
.cz { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) {
  .cz { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); }
  /* El reloj se queda al 80% del ancho de su columna: a tamaño completo se comía casi toda
     la pantalla de un portátil y obligaba a hacer scroll para verlo entero mientras lo ajustas.
     En móvil no se aplica -- allí la columna ya es más estrecha que este tope. */
  .cz-left { position: sticky; top: var(--space-5); max-width: 487px; }
}

.cz-stage {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}
.cz-stage.is-dragover { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
/* Sin imagen (o en una vista que no se edita) el dedo hace scroll de la página como siempre;
   solo con un diseño que se puede mover, el gesto es para moverlo y pellizcarlo. */
.cz-canvas { display: block; width: 100%; height: auto; touch-action: pan-y pinch-zoom; }
.cz-stage.has-image:not(.is-locked) .cz-canvas { touch-action: none; }
.cz-stage.has-image .cz-canvas { cursor: move; }
/* En el móvil el reloj (una foto alta) no pasa de ~62% de la pantalla: así se ve entero y
   debajo asoman los controles, en vez de ocupar toda la pantalla. */
@media (max-width: 899px) {
  .cz-stage, .cz-views { max-width: min(100%, 38vh); margin-inline: auto; }
  .cz-stage, .cz-views { max-width: min(100%, 38svh); }
}

/* Hueco de "sube tu imagen aquí". Lo coloca js/customizer.js con las mismas fracciones que
   usa el lienzo para recortar, así que siempre cae justo encima de la esfera. */
.cz-hole {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-1);
  border: 2px dashed var(--color-accent);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  font-size: 0.68rem; font-weight: 600; text-align: center; line-height: 1.25;
  padding: var(--space-1);
  cursor: pointer;
}
.cz-hole svg { width: 20px; height: 20px; }

/* Selector de vista (frontal / en la muñeca). Son miniaturas con la foto de verdad, el
   mismo patrón que la galería de la ficha de producto: unas pastillas de texto pasaban
   desapercibidas. Se ven desde el principio, antes incluso de subir nada, para que el
   visitante sepa que va a poder verlo puesto. */
.cz-views { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.cz-views button {
  flex: 0 0 auto; padding: 0; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--color-text-muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
}
.cz-views canvas {
  display: block; width: 84px; height: 136px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 0.15s ease;
}
.cz-views button:hover canvas { border-color: var(--color-border-strong); }
.cz-views button.active { color: var(--color-text); }
.cz-views button.active canvas { border: 2px solid var(--color-accent); }
@media (max-width: 480px) {
  .cz-views canvas { width: 70px; height: 113px; }
}

/* En la vista de muñeca no se arrastra: el cursor lo deja claro. */
.cz-stage.has-image.is-locked .cz-canvas { cursor: default; }

.cz-hint { font-size: 0.78rem; color: var(--color-text-muted); margin: var(--space-3) 0 0; }

.cz-step { border-top: 1px solid var(--color-border); padding-top: var(--space-4); margin-top: var(--space-5); }
.cz-step:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.cz-step-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.cz-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink);
  font-size: 0.72rem; font-weight: 700;
}
.cz-step-title { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }

/* Los ajustes no sirven de nada hasta que hay una imagen: se ven, pero apagados. */
.cz-controls { opacity: 0.4; pointer-events: none; transition: opacity 0.2s ease; }
.cz-controls.is-ready { opacity: 1; pointer-events: auto; }

.cz-slider { display: block; margin-bottom: var(--space-4); }
.cz-slider input[type="range"] { width: 100%; accent-color: var(--color-accent); }

.cz-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.cz-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--color-accent); }

@media (max-width: 899px) {
  /* En móvil el botón de compra viaja con el dedo: nunca hay que buscarlo. */
  .cz-buy {
    position: sticky; bottom: 0; z-index: 5;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3) 0 var(--space-4);
    margin-top: var(--space-4);
  }
}

/* Llamada al customizador desde la home y la tienda. */
.cz-promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-accent-soft);
}
.cz-promo h3 { margin: 0 0 var(--space-1); }
.cz-promo p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); max-width: 46ch; }

/* Recorte del fondo del diseño. Se apaga (pero no se esconde) cuando la imagen subida no
   tiene un fondo de color liso: así el cliente entiende que la opción existe y por qué no
   está disponible, en vez de buscarla y no encontrarla. */
.cz-bg { margin-bottom: var(--space-4); }
.cz-bg-row { display: flex; align-items: center; gap: var(--space-2); font-size: 0.88rem; font-weight: 600; }
.cz-bg-row input { accent-color: var(--color-accent); }
.cz-bg-swatch {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1px solid var(--color-border-strong); border-radius: 4px;
}
.cz-bg-note { font-size: 0.76rem; color: var(--color-text-muted); margin: var(--space-2) 0 0; }
.cz-bg.is-off { opacity: 0.5; }
.cz-bg.is-off .cz-bg-row { cursor: default; }

/* Recorte avanzado (IA). Va debajo del recorte por color porque es el plan B: se ofrece
   siempre que haya una imagen, incluso cuando el fondo no es liso — que es justo su caso. */
.cz-bg-ia { margin-top: var(--space-3); }
.cz-bg-ia-note { font-size: 0.72rem; color: var(--color-text-muted); margin: var(--space-2) 0 0; }
/* Cuando manda la IA, el recorte por color deja de aplicarse: se atenúa para que se vea. */
.cz-bg.con-ia .cz-bg-row, .cz-bg.con-ia .cz-bg-note { opacity: 0.45; }

/* ==========================================================================
   ACABADO: calcomanía o pintado a mano
   Es lo que nos separa de la competencia, así que la elección no se esconde en
   un desplegable: dos tarjetas con el precio y una línea de qué es cada una,
   visibles de golpe. Mismo componente en la ficha de producto y en /personalizar.
   ========================================================================== */
.finish-picker { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
/* Con tres (el reloj personalizado: calcomanía, dorado y a mano), las dos de calcomanía van
   juntas arriba y el pintado a mano ocupa entera la fila de abajo. */
.finish-picker-3 .finish-card:last-child { grid-column: 1 / -1; }
@media (max-width: 420px) { .finish-picker { grid-template-columns: 1fr; } }
/* Un solo acabado (ediciones: calcomanía; hechos a mano: a mano): tarjeta informativa. */
.finish-picker-1 { grid-template-columns: 1fr; }
.finish-picker-1 .finish-card { cursor: default; }
.finish-card {
  position: relative; display: flex; flex-direction: column; gap: 1px;
  text-align: left; padding: var(--space-4);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius);
  background: transparent; color: var(--color-text); cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.finish-card:hover { border-color: var(--color-text); }
/* Borde interior en vez de un borde más grueso: marca la elección sin mover el diseño 1px. */
.finish-card.active {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  background: var(--color-accent-soft);
}
.finish-name { font-weight: 700; font-size: 0.95rem; }
.finish-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--color-accent); }
.finish-tagline { font-size: 0.78rem; line-height: 1.4; color: var(--color-text-muted); margin-top: var(--space-1); }
.finish-state { font-size: 0.72rem; color: var(--color-text-muted); margin-top: var(--space-2); }
.finish-card.is-out { opacity: 0.5; }
.finish-tag {
  position: absolute; top: -9px; right: var(--space-3);
  padding: 2px 7px; border-radius: 999px;
  background: var(--color-text); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.finish-bullets { display: grid; gap: var(--space-1); margin-top: var(--space-3); font-size: 0.82rem; color: var(--color-text-muted); }
.finish-bullets li::before { content: '— '; color: var(--color-accent); }

/* En el customizador el selector va dentro del paso 3, pegado al precio. */
.cz-finish { margin-bottom: var(--space-4); }
.cz-finish .option-group { margin-bottom: 0; }
.cz-finish .cz-modelo { margin-bottom: var(--space-4); }
.cz-modelos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.cz-modelos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Ficha de producto: selector de color encima del acabado, y lo que cuesta de más el dorado. */
.pdp-colores { margin-bottom: var(--space-4); }
.pdp-color-extra { font-weight: 600; color: var(--color-text-muted); }
/* Tienda: puntitos de los colores en que se vende cada reloj. */
/* La tarjeta entera es el enlace (el del nombre, estirado); los circulitos van por encima. */
.card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.card-price { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.card-colores { display: inline-flex; align-items: center; gap: 2px; position: relative; z-index: 2; }
.card-colores > .sw { margin: 6px; }
.sw-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s var(--ease); }
.sw-btn:hover { box-shadow: inset 0 0 0 1.5px var(--color-border-strong); }
.sw-btn.on { box-shadow: inset 0 0 0 1.5px var(--color-text); }
.sw-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.card-colores .sw { display: block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.card-precio { white-space: nowrap; }
@media (max-width: 480px) { .card-price { gap: 4px; } .card-colores { gap: 0; } .sw-btn { width: 24px; height: 24px; } }
.ver-todos { display: flex; justify-content: center; margin-top: var(--space-6); }
.btn-dark { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.btn-dark:hover { background: var(--color-text); color: var(--color-bg); opacity: .9; }
.card-colores .sw-plateado { background: linear-gradient(135deg, #f4f5f6, #a7abb1); }
.card-colores .sw-dorado { background: linear-gradient(135deg, #f6dc94, #c08a2c); }
.cz-modelo-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 0.5rem; text-align: center; line-height: 1.2; border: 1px solid var(--color-border-strong); border-radius: var(--radius); background: transparent; color: var(--color-text); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.cz-modelo-btn:hover { border-color: var(--color-text); }
.cz-modelo-btn.active { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: var(--color-accent-soft); }
.cz-swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cz-swatch-plateado { background: linear-gradient(135deg, #f4f5f6, #a7abb1); }
.cz-swatch-dorado { background: linear-gradient(135deg, #f6dc94, #c08a2c); }
/* MTP-1302: redondo y con bisel, para que se distinga de un vistazo del AQ-230 plateado. */
.cz-swatch-mtp { background: radial-gradient(circle, #ffffff 0 44%, #9da1a7 46% 52%, #eceef0 56% 78%, #a7abb1 82%); }
/* Foto pequeña de cada reloj en el selector de modelo. */
.cz-modelo-img { display: block; width: 100%; max-width: 72px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: #fff; }
.cz-modelo-txt { font-size: 0.85rem; }

/* Comparativa larga de los dos acabados (home y tienda): aquí se explica la diferencia
   entera, para que quien llega por primera vez entienda por qué hay dos precios. */
.finish-compare { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin-top: var(--space-6); }
@media (min-width: 760px) { .finish-compare { grid-template-columns: 1fr 1fr; } }
.finish-col {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-5); background: var(--color-bg);
}
.finish-col.is-hand { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.finish-col-eyebrow {
  display: inline-block; margin-bottom: var(--space-2); padding: 2px 8px; border-radius: 999px;
  background: var(--color-surface-2); color: var(--color-text-muted);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.finish-col.is-hand .finish-col-eyebrow { background: var(--color-text); color: #fff; }
.finish-col h3 { margin: 0 0 var(--space-1); }
.finish-col-price { font-family: var(--font-display); font-weight: 700; color: var(--color-accent); margin-bottom: var(--space-3); }
.finish-col p { margin: 0 0 var(--space-3); font-size: 0.9rem; color: var(--color-text-muted); }
.finish-col ul { display: grid; gap: var(--space-2); font-size: 0.88rem; color: var(--color-text-muted); }
.finish-col li::before { content: '— '; color: var(--color-accent); }
.finish-col-cta { margin-top: var(--space-4); }

/* ==========================================================================
   DESCUENTO POR CANTIDAD
   2 relojes o mas en el mismo pedido -> 15% de todo el pedido. No hay codigo
   ni registro. Las reglas de verdad estan en api/descuento-lib.php; lo de aqui
   solo es como se ve.
   ========================================================================== */

/* Empujon en el carrito a quien lleva un solo reloj. */
.desc-nudge {
  margin: var(--space-3) 0 0; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: 0.8rem;
}
.desc-nudge[hidden] { display: none; }

/* La oferta en la home. Es una sola tarjeta: centrada y sin estirarse a lo ancho de la
   pantalla, que quedaria una caja larguisima con cuatro palabras dentro. */
.desc-promo {
  display: grid; gap: var(--space-4); grid-template-columns: 1fr;
  margin: var(--space-2) auto 0; max-width: 38rem;
}
.desc-promo-card {
  border: 1px solid var(--color-accent); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  padding: var(--space-6) var(--space-5); background: var(--color-bg); text-align: center;
}
.desc-promo-pct { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--color-accent); }
.desc-promo-card h2 { margin: var(--space-2) 0 var(--space-2); font-size: clamp(1.5rem, 3.4vw, 2rem); }
.desc-promo-card p { margin: 0 0 var(--space-4); font-size: 0.9rem; color: var(--color-text-muted); }

/* Aviso del pack en la tienda y en la ficha. */
.pack-aviso {
  margin: 0 0 var(--space-5); padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm); background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  color: var(--color-accent-ink); font-size: 0.88rem; font-weight: 700;
}
.pack-aviso[hidden] { display: none; }

/* ------------------------------------------------------------------ relojes de clientes
   Cuatro fotos reales de pedidos personalizados (home y personalizador). En el móvil se pasan
   de lado, con la siguiente asomando para que se note que hay más. */
.clientes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4, 1rem); margin-top: var(--space-6, 2rem); }
.clientes-foto { margin: 0; }
.clientes-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--color-surface); }
.clientes-foto figcaption { margin-top: .5rem; font-size: .85rem; color: var(--color-text-muted); text-align: center; }
.clientes-cta { display: flex; justify-content: center; margin-top: var(--space-6, 2rem); }
@media (max-width: 640px) {
  .clientes-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
  .clientes-foto { scroll-snap-align: center; }
}

/* ---------- Regalo de bienvenida (10 € por el email) ----------
   Ventanita centrada en ordenador y hoja que sube desde abajo en el móvil. */
.bv-overlay {
  position: fixed; inset: 0; z-index: 650;
  background: rgba(15,27,48,0.45);
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  opacity: 0; transition: opacity .25s var(--ease);
}
.bv-overlay.show { opacity: 1; }
.bv-box {
  background: var(--color-bg); border-radius: var(--radius); padding: var(--space-6);
  max-width: 420px; width: 100%; position: relative; text-align: center;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(12px); transition: transform .25s var(--ease);
}
.bv-overlay.show .bv-box { transform: translateY(0); }
.bv-cerrar {
  position: absolute; top: var(--space-2); right: var(--space-2);
  width: 40px; height: 40px; border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1; color: var(--color-text-muted); cursor: pointer;
}
.bv-regalo { font-size: 2.2rem; margin: 0 0 var(--space-2); }
.bv-box h2 { font-size: 1.45rem; margin: 0 0 var(--space-2); }
.bv-texto { color: var(--color-text-muted); font-size: .95rem; margin: 0 0 var(--space-4); }
.bv-form { display: flex; flex-direction: column; gap: var(--space-3); text-align: left; }
.bv-form input[type=email] {
  width: 100%; min-width: 0; padding: .9rem 1rem; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--color-text); background: var(--color-bg);
}
.bv-form input[type=email]:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.bv-acepta { display: flex; gap: var(--space-2); align-items: flex-start; font-size: .78rem; color: var(--color-text-muted); line-height: 1.4; cursor: pointer; }
.bv-acepta input { margin-top: .15rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--color-accent); }
.bv-acepta a { text-decoration: underline; }
.bv-msg { margin: 0; font-size: .85rem; min-height: 1em; }
.bv-msg.err { color: var(--color-danger); }
.bv-msg.ok { color: var(--color-success); font-size: .95rem; text-align: center; }
@media (max-width: 599px) {
  .bv-overlay { align-items: flex-end; padding: 0; }
  .bv-box { border-radius: var(--radius) var(--radius) 0 0; padding: var(--space-5) var(--space-5) var(--space-6); transform: translateY(100%); }
}
.bv-pie {
  display: inline-block; margin-top: var(--space-4); padding: 0; border: 0; background: none;
  color: var(--color-accent); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left;
}
.bv-pie:hover { text-decoration: underline; }

/* Código de descuento en el carrito */
.cod-box { margin: var(--space-3) 0; }
.cod-titulo { display: block; font-size: .85rem; font-weight: 600; color: var(--color-text); }
.cod-fila { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.cod-fila input {
  flex: 1 1 auto; width: 0; min-width: 0; padding: .6rem .75rem; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; text-transform: uppercase; background: var(--color-bg); color: var(--color-text);
}
.cod-fila .btn { padding: .6rem 1rem; }
.cod-msg { font-size: .8rem; margin: var(--space-2) 0 0; }
.cod-msg.ok { color: var(--color-success); }
.cod-msg.err { color: var(--color-danger); }
.cod-msg.info { color: var(--color-text-muted); }
.cod-fila [hidden] { display: none; }

/* ---------- Opiniones de clientes (de Vinted) ---------- */
.opiniones-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.opinion {
  margin: 0; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--space-2);
}
.opinion-estrellas { color: var(--color-accent); letter-spacing: 2px; font-size: 1rem; }
.opinion blockquote { margin: 0; font-size: 1.02rem; line-height: 1.45; color: var(--color-text); }
.opinion-trad { margin: 0; font-size: .75rem; color: var(--color-text-muted); font-style: italic; }
.opinion figcaption { margin-top: auto; padding-top: var(--space-2); font-weight: 600; font-size: .9rem; }
.opinion figcaption span { font-weight: 400; color: var(--color-text-muted); }
.pdp-rating { margin: var(--space-3) 0 0; font-size: .85rem; color: var(--color-text-muted); }
.pdp-rating strong { color: var(--color-text); }
.pdp-rating a { text-decoration: underline; }

/* Regalo de bienvenida dentro de la sección de descuentos de la home */
.desc-promo-card .desc-promo-bv { margin: var(--space-2) 0 var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); color: var(--color-text); }
.desc-promo-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------- Página "Sobre nosotros" ---------- */
.nos-lead { font-size: 1.08rem; line-height: 1.6; color: var(--color-text-muted); margin: 0; }
.nos-texto { max-width: 760px; }
.nos-texto p { color: var(--color-text-muted); line-height: 1.65; }
.nos-pasos { list-style: none; counter-reset: paso; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.nos-pasos li { counter-increment: paso; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: var(--space-3); }
.nos-pasos li::before {
  content: counter(paso); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nos-pasos strong { display: block; margin-bottom: 2px; }
.nos-pasos span { color: var(--color-text-muted); line-height: 1.55; }
.nos-promesas { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); }
.nos-promesas li { position: relative; padding-left: 1.8rem; line-height: 1.55; }
.nos-promesas li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-success); font-weight: 700; }
.nos-cta { margin: var(--space-6) 0 var(--space-5); padding: var(--space-5); border: 1px solid var(--color-accent); border-radius: var(--radius); text-align: center; }
.nos-aviso { font-size: .78rem; color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding-top: var(--space-4); margin-top: var(--space-5); }
.nos-promesas + h2 { margin-top: var(--space-7); }

/* Botón fijo del regalo de bienvenida (abajo a la izquierda; WhatsApp va a la derecha) */
.bv-fijo {
  position: fixed; left: var(--space-5); bottom: var(--space-5); z-index: 150;
  padding: .7rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-accent); color: var(--color-accent-ink);
  font: inherit; font-size: .9rem; font-weight: 700;
  box-shadow: var(--shadow-card-hover);
}
.bv-fijo:hover { background: var(--color-accent-hover); }
@media (max-width: 899px) {
  body:has(.cz-buy) .bv-fijo { bottom: 110px; }
}
