/* ==========================================================
   NoSirvoParaDramas × DarKocoa Lab — estilos del prototipo
   Los tokens de :root son la base para el theme.json de WordPress.
   Dos mundos y una sola bolsa: NSPD brilla en perla, rosa y lila
   tornasol; DarKocoa se viste de satín cacao, vino y el dorado
   de las perchas.
   ========================================================== */

/* Inter (licencia OFL) servida desde el propio sitio: sin conexiones a terceros. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tipografía de la guía de marca: Inter en todo el sitio. */
  --font: 'Inter', system-ui, sans-serif;

  /* NoSirvoParaDramas: colores de la guía de identidad visual */
  --nspd-bg: #FEFDF5;          /* crema: subtono de #FFFDE7 */
  --nspd-blush: #FFE9F5;       /* rosa pálido: 15% del principal */
  --nspd-surface: #FFC4E3;     /* rosa suave: 40% del principal */
  --nspd-border: #FFC4E3;
  --nspd-pink: #FF6CB9;        /* rosa principal de la marca: encima va --nspd-on-pink, nunca blanco */
  --nspd-primary: #FF6CB9;     /* botones, barra de anuncios y footer */
  --nspd-primary-deep: #FF5AB0;/* subtono del rosa principal, al pasar el cursor */
  --nspd-on-pink: #3E2413;     /* café oscuro: el café de la marca no alcanza el contraste sobre este rosa */
  --nspd-price: #59361D;
  --nspd-lilac: #FFA7D5;       /* rosa orquídea: 60% del principal */
  --nspd-lilac-soft: #FFE9F5;
  --nspd-peach: #FDADA4;       /* durazno */
  --nspd-gold: #A4694C;        /* bronce */
  --nspd-ink: #59361D;         /* café de la marca: texto */
  --nspd-ink-soft: #7A5640;
  --nspd-iris: linear-gradient(115deg, #FFC4E3 0%, #FFE9F5 34%, #FEFDF5 64%, #FFA7D5 100%); /* tornasol */

  /* Dios está Aquí: el rosa, el café y el bronce de las cartas de tarot de la marca */
  --dios-bg: #FFE9F5;
  --dios-surface: #FFC4E3;
  --dios-pink: #FF6CB9;
  --dios-ink: #59361D;
  --dios-soft: #7A5640;
  --dios-bronze: #A4694C;
  --dios-cream: #FFFDE7;

  /* DarKocoa Lab (muestreados del catálogo) */
  --dk-bg: #EAE7DD;            /* lino: exactamente el fondo de las páginas del catálogo */
  --dk-paper: #F2EFE7;
  --dk-surface: #DED9D3;
  --dk-line: #CFC5B8;
  --dk-espresso: #301C1B;      /* texto y píldoras de precio */
  --dk-night: #1D1110;         /* sombra cacao */
  --dk-wine: #461515;          /* vino oscuro: botones */
  --dk-burgundy: #703231;      /* burdeos cacao */
  --dk-leather: #734535;
  --dk-brass: #C19A5B;         /* dorado de percha: detalles sobre fondos oscuros */
  --dk-taupe: #A77F6F;
  --dk-rose: #E8BEC3;          /* rosa empolvado: script sobre fondos oscuros */
  --dk-mauve: #B49898;
  --dk-ink-soft: #5E4744;
  --dk-satin: radial-gradient(130% 140% at 0% 0%, #5B2B27 0%, #301C1B 48%, #1D1110 100%);

  /* Inicio común y checkout */
  --hub-bg: #FBF6F3;
  --hub-panel: #FFFFFF;
  --hub-ink: #2E2226;
  --hub-soft: #6B5A57;
  --hub-line: #EBE2DC;
  --hub-accent: #3B1E2A;       /* ciruela cacao: une las dos marcas */
  --hub-accent-hover: #5A2B3E;

  /* Estados */
  --ok: #2E6A4C;
  --error: #A3242C;

  /* Movimiento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --pad: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 72px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--selection); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Temas ---------- */
.theme-hub {
  --bg: var(--hub-bg); --ink: var(--hub-ink); --soft: var(--hub-soft); --line: var(--hub-line);
  --panel: var(--hub-panel); --muted-bg: #F6EDEA;
  --accent: var(--hub-accent); --accent-ink: #fff; --accent-hover: var(--hub-accent-hover);
  --focus: var(--hub-ink); --selection: var(--nspd-surface);
  --chip-bg: #fff; --chip-fg: var(--hub-ink); --chip-border: #DDD0CA;
  --chip-on-bg: var(--hub-ink); --chip-on-fg: #fff;
}
.theme-dk {
  --bg: var(--dk-bg); --ink: var(--dk-espresso); --soft: var(--dk-ink-soft); --line: #D5CCC0;
  --panel: var(--dk-paper); --muted-bg: #E4DFD6;
  --accent: var(--dk-wine); --accent-ink: var(--dk-bg); --accent-hover: var(--dk-burgundy);
  --focus: var(--dk-wine); --selection: var(--dk-rose);
  --chip-bg: transparent; --chip-fg: var(--dk-espresso); --chip-border: #9C8F86;
  --chip-on-bg: var(--dk-espresso); --chip-on-fg: var(--dk-bg);
}
.theme-nspd {
  --bg: var(--nspd-bg); --ink: var(--nspd-ink); --soft: var(--nspd-ink-soft); --line: var(--nspd-border);
  --panel: #fff; --muted-bg: var(--nspd-blush);
  --accent: var(--nspd-primary); --accent-ink: var(--nspd-on-pink); --accent-hover: var(--nspd-primary-deep);
  --focus: var(--nspd-ink); --selection: var(--nspd-surface);
  --chip-bg: #fff; --chip-fg: var(--nspd-ink); --chip-border: #FFC4E3;
  --chip-on-bg: var(--nspd-ink); --chip-on-fg: var(--nspd-bg);
  line-height: 1.6;
}

/* ---------- Barra de anuncios ---------- */
.announce {
  position: relative; height: 36px; overflow: hidden;
  background: var(--dk-espresso); color: var(--dk-bg);
  font-size: 13px; letter-spacing: .02em;
}
.theme-hub .announce, .theme-nspd .announce { background: var(--nspd-primary); color: var(--nspd-on-pink); }
.announce p {
  position: absolute; inset: 0; margin: 0; padding-inline: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  opacity: 0; transform: translateY(100%);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.announce p.is-active { opacity: 1; transform: none; }
.announce p.is-leaving { opacity: 0; transform: translateY(-100%); }
.announce svg { flex: none; color: var(--nspd-pink); }
.theme-dk .announce svg { color: var(--dk-brass); }
.theme-hub .announce svg, .theme-nspd .announce svg { color: var(--nspd-on-pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding: 12px var(--pad);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s, transform .45s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(48, 28, 27, .5); }
.site-header.is-hidden { transform: translateY(-100%); }

.back-link span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.back-link:hover span::after { transform: scaleX(1); transform-origin: left; }

.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; color: var(--soft); transition: color .25s; }
.back-link span { position: relative; }
.back-link span::after { bottom: -2px; height: 1px; }
.back-link:hover { color: var(--ink); }
.back-link svg { transition: transform .35s var(--ease-out); }
.back-link:hover svg { transform: translateX(-3px); }

.icon-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 999px; color: inherit; cursor: pointer;
  transition: background-color .25s, transform .25s var(--ease-out);
}
.icon-btn:hover { background: var(--muted-bg); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.is-bumping { animation: bag-bump .65s var(--ease-spring); }
.bag-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font: 700 11px/18px var(--font); text-align: center;
  background: var(--nspd-primary); color: var(--nspd-on-pink); box-shadow: 0 0 0 2px var(--bg);
}
.theme-dk .bag-count { background: var(--dk-wine); color: var(--dk-bg); }
.bag-count.is-pop { animation: pop .55s var(--ease-spring); }

/* Header de cada tienda */
.store-header { display: grid; grid-template-columns: auto auto 1fr auto; }
.store-header .icon-actions { grid-column: 4; }

/* Logos (imágenes recortadas de los logos originales; la versión -light es para fondos oscuros).
   El de NSPD es casi cuadrado y el de DarKocoa es apaisado, por eso cada uno lleva su alto. */
.logo-img { display: block; width: auto; max-width: none; }
.hub-logo { display: flex; align-items: center; }
.hub-logo .logo-img-nspd { height: 60px; }
.store-logo { display: inline-flex; align-items: center; }
.store-logo .logo-img-nspd { height: 60px; }
.store-logo .logo-img-dk { height: 42px; }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 600 16px var(--font); text-align: center; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, transform .2s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .9s var(--ease-out);
}
.btn:hover::before { transform: translateX(110%); }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { cursor: progress; opacity: .8; }

.btn-nspd { background: var(--nspd-primary); color: var(--nspd-on-pink); font-weight: 700; box-shadow: 0 14px 28px -16px rgba(255, 108, 185, .85); }
.btn-nspd:hover { background: var(--nspd-primary-deep); }
.btn-dk { background: var(--dk-wine); color: var(--dk-bg); box-shadow: 0 14px 28px -18px rgba(70, 21, 21, .95); }
.btn-dk:hover { background: var(--dk-burgundy); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 28px -18px rgba(48, 28, 27, .8); }
.btn-primary:hover { background: var(--accent-hover); }
.theme-nspd .btn-primary { font-weight: 700; }
.btn-cream { background: var(--dk-bg); color: var(--dk-espresso); }
.btn-cream:hover { background: #fff; }
.btn-ink { background: var(--nspd-ink); color: var(--nspd-bg); font-weight: 700; }
.btn-ink:hover { background: #6E2328; }
.btn-outline { background: transparent; color: inherit; border: 1px solid currentColor; font-weight: 500; min-height: 52px; }
.btn-outline::before { display: none; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.theme-nspd .btn-outline { font-weight: 600; }
.btn-block { width: 100%; min-height: 56px; }
.btn.is-done { background: var(--ink); color: var(--bg); }
.check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .05s var(--ease-out) forwards; }
.btn-link {
  align-self: center; min-height: 40px; padding: 0 8px; border: 0; background: none;
  font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

/* ---------- Chips (filtros y variantes) ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--chip-border); background: var(--chip-bg); color: var(--chip-fg);
  font: 500 14px var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s, border-color .3s, transform .2s var(--ease-out);
}
.chip:hover { border-color: var(--chip-on-bg); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { border-color: var(--chip-on-bg); background: var(--chip-on-bg); color: var(--chip-on-fg); }
.chip-n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.theme-nspd .chip { font-weight: 600; }
.chip-size { justify-content: center; min-width: 64px; min-height: 48px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.theme-nspd .chip-size { min-width: 84px; border-radius: 999px; }

.swatch-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px;
  border: 2px solid var(--sw-border); background: transparent; color: inherit;
  font: 500 14px var(--font); cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .2s var(--ease-out);
}
.swatch-chip:hover, .swatch-chip[aria-pressed="true"] { border-color: var(--sw-on); }
.swatch-chip:active { transform: scale(.96); }
.theme-dk .swatch-chip { --sw-border: var(--dk-line); --sw-on: var(--dk-espresso); }
.theme-dk .swatch-chip[aria-pressed="true"] { background: var(--dk-paper); }
.theme-nspd .swatch-chip { --sw-border: #FFD3EA; --sw-on: var(--nspd-ink); background: #fff; font-weight: 600; }
.swatch { width: 22px; height: 22px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .25); transition: transform .35s var(--ease-spring); }
.swatch-chip[aria-pressed="true"] .swatch { transform: scale(1.15); }

/* ---------- Inicio: elegir tienda ----------
   Dos puertas a pantalla completa. La que señalas se abre un poco
   y la pregunta del centro sigue la línea entre las dos. */
.chooser {
  --door-pad: clamp(28px, 4vw, 64px);
  --door-grow: 1.25;
  position: relative; display: flex;
  height: max(600px, calc(100svh - 36px - var(--header-h)));
  background: var(--dk-night);
}
.chooser-prompt {
  position: absolute; z-index: 2; top: 28px; left: 50%; translate: -50% 0;
  padding: 14px 28px 13px; border-radius: 22px; text-align: center;
  background: var(--hub-bg); color: var(--hub-ink);
  box-shadow: 0 20px 44px -24px rgba(29, 17, 16, .6);
  transition: left .9s var(--ease-out);
}
.chooser-prompt h1 { margin: 0; color: var(--nspd-gold); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.chooser-prompt p { margin: 4px 0 0; font-size: 14px; color: var(--hub-soft); }

.door {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 132px var(--door-pad) var(--door-pad);
  --logo-box: clamp(200px, 34vh, 320px);
  transition: flex-grow .9s var(--ease-out);
}
.door:focus-visible { outline-offset: -12px; }
.door-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; text-align: center; transition: opacity .6s var(--ease-out); }
/* Los dos logos viven en una caja del mismo alto, centrados: así frase, logo y botón
   quedan a la misma altura en las dos tiendas aunque un logo sea cuadrado y el otro apaisado. */
.door-name { margin: 0; width: 100%; height: var(--logo-box); display: grid; place-items: center; }
.door-name img { width: auto; height: auto; max-height: var(--logo-box); max-width: min(100%, 440px); }
.door .btn { margin-top: 8px; white-space: nowrap; }
.door:hover .btn::before { transform: translateX(110%); }
.door:hover .btn .arrow { transform: translateX(4px); }

.door-nspd { background: var(--nspd-bg); color: var(--nspd-ink); --focus: var(--nspd-ink); }
.door-nspd .script-nspd { font-size: clamp(24px, 2vw, 30px); }
.door-nspd .door-name img { filter: drop-shadow(0 18px 26px rgba(89, 54, 29, .18)); }
.door-nspd:hover .btn-nspd { background: var(--nspd-primary-deep); }
.aura {
  position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 40% at 24% 32%, rgba(255, 108, 185, .55), transparent 70%),
    radial-gradient(32% 38% at 76% 22%, rgba(185, 163, 227, .45), transparent 70%),
    radial-gradient(38% 38% at 58% 80%, rgba(252, 225, 207, .8), transparent 70%);
}
.twinkle { position: absolute; display: inline-flex; color: var(--nspd-pink); pointer-events: none; }
.twinkle.t1 { top: -12px; right: -14px; }
.twinkle.t2 { bottom: 36px; left: -20px; color: var(--nspd-gold); }
.twinkle.t3 { top: 42%; right: -30px; color: var(--nspd-lilac); }

.placeholder {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--nspd-surface); border: 1px solid #FFC4E3; color: var(--nspd-pink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.placeholder::before { content: ''; position: absolute; inset: -60%; z-index: -1; background: var(--nspd-iris); }
.placeholder > span:not(.ph-star):not(.twinkle) { font-size: 13px; color: var(--nspd-ink-soft); }
/* Recuadro vacío de DarKocoa: lino con sombra cacao en vez del tornasol rosa */
.placeholder-dk { background: var(--dk-surface); border-color: var(--dk-line); color: var(--dk-wine); }
.placeholder-dk::before { background: radial-gradient(120% 90% at 30% 15%, #F2EFE7 0%, #E2DDD3 50%, #CFC5B8 100%); }
.placeholder-dk > span:not(.ph-star):not(.twinkle) { color: var(--dk-ink-soft); }
.placeholder-dk .ph-star { filter: drop-shadow(0 6px 12px rgba(48, 28, 27, .2)); }
.placeholder-dk .twinkle { color: var(--dk-brass); }
.ph-star { display: inline-flex; filter: drop-shadow(0 1px 0 rgba(89, 54, 29, .35)) drop-shadow(0 6px 12px rgba(89, 54, 29, .18)); }

.script-nspd { margin: 0; color: var(--nspd-ink-soft); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.script-dk { margin: 0; color: var(--dk-burgundy); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }

.door-dk { background: var(--dk-satin); color: var(--dk-bg); --focus: var(--dk-rose); }
.door-dk::after, .band-dk::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .16; mix-blend-mode: overlay;
}
.door-dk .script-dk { font-size: clamp(24px, 2vw, 30px); color: var(--dk-rose); }


/* ---------- Dios está Aquí ---------- */

.store-intro.dios-intro { align-items: center; padding-block: 48px 28px; }
.dios-intro h1 { margin: 6px 0 16px; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.theme-nspd .store-intro.dios-intro h1 { margin-bottom: 16px; }
.dios-intro p + p { margin-top: 10px; }
.dios-intro .script-nspd { font-size: clamp(22px, 2vw, 28px); }
.dios-figure { margin: 0; justify-self: center; }
/* Apartado de la tienda NSPD con lo que ofrece Dios está Aquí. */
.dios-oferta { margin-bottom: 28px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--dios-surface); border-radius: 24px; background: var(--dios-bg); }
.dios-oferta-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.dios-oferta-top img { width: 112px; height: auto; }
.dios-oferta h2 { margin: 0; font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.dios-oferta-top p { margin: 4px 0 0; font-size: 15px; color: var(--soft); }
.dios-grupos { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.dios-grupo { padding: 16px 18px; border-radius: 16px; background: #fff; font-size: 14px; line-height: 1.7; }
.dios-grupo h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.dios-grupo p { margin: 0; }
.dios-grupo .desde { margin-bottom: 8px; color: var(--soft); }
.dios-grupo a { text-decoration: underline; text-decoration-color: var(--dios-surface); text-underline-offset: 3px; }
.dios-grupo a:hover { text-decoration-color: currentColor; }
@media (max-width: 860px) {
  .dios-oferta-top { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .dios-grupos { grid-template-columns: minmax(0, 1fr); }
}
.dios-figure img { width: min(100%, 440px); height: auto; }

/* Cada sesión es una carta rosada con marco bronce, como las cartas de tarot de la marca */
.card-dios { color: var(--dios-ink); }
.card-dios .dios-face {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px 84px; border-radius: 20px;
  background: linear-gradient(180deg, #FFD3EA 0%, var(--dios-surface) 100%);
  box-shadow: 0 24px 40px -30px rgba(89, 54, 29, .5);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.card-dios .dios-face::before {
  content: ''; position: absolute; inset: 9px; border: 1px solid rgba(164, 105, 76, .55); border-radius: 13px; pointer-events: none;
}
.card-dios:hover .dios-face { transform: translateY(-6px); box-shadow: 0 30px 46px -28px rgba(89, 54, 29, .55); }
.dios-meta { font-size: 13px; font-weight: 600; color: var(--dios-bronze); }
.card-dios .name { font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.dios-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dios-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-dios .price { margin-top: auto; font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.card-dios .quick-add { left: 18px; right: 18px; bottom: 18px; color: var(--dios-ink); --panel: var(--dios-cream); --accent: var(--dios-ink); --accent-ink: var(--dios-cream); }
.card-dios .quick-panel { color: var(--dios-ink); }

.theme-nspd .product-media.dios-art { border-radius: 24px; background: linear-gradient(180deg, #FFD3EA 0%, var(--dios-surface) 100%); color: var(--dios-ink); }
.dios-art-frame {
  position: absolute; inset: 20px; border: 1.5px solid rgba(164, 105, 76, .6); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px;
}
.dios-art-top { font-size: 17px; font-weight: 600; color: var(--dios-bronze); }
.dios-art-big { font-size: clamp(72px, 11vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dios-art-big.is-long { font-size: clamp(44px, 6vw, 72px); letter-spacing: -.02em; }
.dios-art-unit { font-size: 18px; font-weight: 600; }
.product-media .dios-art-logo { width: 46%; height: auto; margin-top: 28px; object-fit: contain; transform: none; }
.dios-detail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dios-detail li { display: flex; align-items: flex-start; gap: 10px; }
.dios-detail svg { flex: none; margin-top: 5px; color: var(--dios-bronze); }
.ph-dios { background: linear-gradient(160deg, var(--dios-bg), var(--dios-surface)); color: var(--dios-bronze); }

@media (hover: hover) and (min-width: 1100px) {
  .door:hover, .door:focus-visible { flex-grow: var(--door-grow); }
  .chooser:has(.door:hover) .door:not(:hover) .door-body { opacity: .6; }
}
@media (max-width: 900px) {
  .chooser { flex-direction: column; height: auto; }
  .chooser-prompt { position: static; translate: none; border-radius: 0; box-shadow: none; padding: 20px 16px 18px; }
  .chooser-prompt h1 { font-size: 28px; white-space: normal; }
  .door { flex: none; min-height: 320px; padding: 28px 16px 32px; }
  .door { --logo-box: 160px; }
  .door-name img { max-width: min(100%, 270px); }
  .door-body { gap: 10px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: 80px 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head > div:first-child { min-width: 0; }
.section-head h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.section-head p { margin: 8px 0 0; color: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 40px 28px; }

.benefits { background: var(--hub-panel); border-block: 1px solid var(--hub-line); }
.benefits .container { padding-block: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon {
  flex: none; width: 52px; height: 52px; border-radius: 999px;
  display: grid; place-items: center; background: var(--tint); color: var(--tone);
  transition: transform .6s var(--ease-spring);
}
.benefit:hover .benefit-icon { transform: rotate(-10deg) scale(1.08); }
.benefit h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 600; }
.benefit p { margin: 0; font-size: 14px; color: var(--soft); }
/* En el inicio el apartado lleva a las redes: cada tarjeta es un enlace y las filas incompletas quedan centradas. */
.redes .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.redes h2 { flex: 0 0 100%; margin: 0; text-align: center; font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.redes .benefit { flex: 0 1 180px; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 20px 12px; border: 1px solid var(--hub-line); border-radius: 20px; text-align: center; transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s; }
.redes .benefit:hover { transform: translateY(-3px); border-color: var(--nspd-pink); box-shadow: 0 18px 32px -24px rgba(255, 108, 185, .8); }
.redes .benefit-icon { width: 60px; height: 60px; }
.redes .benefit h3 { margin: 0; font-size: 18px; font-weight: 700; }
.redes .benefit p { overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 640px) {
  .redes .container { gap: 12px; }
  .redes .benefit { flex: 1 1 100%; flex-direction: row; gap: 16px; padding: 14px 16px; text-align: left; }
}

/* ---------- Intro de tienda y filtros ---------- */
.store-intro { position: relative; isolation: isolate; padding-block: 64px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.theme-nspd .store-intro::before {
  content: ''; position: absolute; z-index: -1; inset: -20% 0 -10% 25%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 72% 40%, rgba(185, 163, 227, .32), transparent 70%),
    radial-gradient(34% 46% at 32% 62%, rgba(255, 108, 185, .38), transparent 70%);
}
.store-intro .script-dk { font-size: clamp(24px, 2.2vw, 30px); }
.store-intro .script-nspd { font-size: clamp(24px, 2.2vw, 30px); }
.theme-dk .store-intro h1 { margin: 6px 0 0; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.theme-nspd .store-intro h1 { margin: 6px 0 0; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.store-intro .stack { display: flex; flex-direction: column; gap: 14px; }
.store-intro p { margin: 0; max-width: 52ch; }
.note { margin: 0; font-size: 14px; padding: 12px 16px; border-radius: 12px; background: var(--dk-surface); color: #4E3A37; }
.theme-nspd .note { background: var(--nspd-blush); color: var(--nspd-ink); }
.toolbar { padding-block: 8px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar-end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.count { margin: 0; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
.sort { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select {
  min-height: 44px; padding: 0 38px 0 16px; border-radius: 999px; appearance: none; cursor: pointer;
  border: 1px solid var(--chip-border); background: var(--chip-bg); color: var(--chip-fg); font-size: 14px;
}
.sort svg { position: absolute; right: 14px; pointer-events: none; }
.catalog { padding-bottom: 96px; }

/* ---------- Tarjetas de producto ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card .name { margin: 0; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card .media { position: relative; overflow: hidden; }
.card .media img { transition: transform 1.3s var(--ease-out); }
.card:hover .media img { transform: scale(1.05); }

.card-dk {
  --accent: var(--dk-wine); --accent-ink: var(--dk-bg); --accent-hover: var(--dk-burgundy);
  --panel: var(--dk-paper); --chip-border: #9C8F86; --card-r: 4px;
  gap: 14px; color: var(--dk-espresso);
}
.card-dk .media { background: var(--dk-bg); border-radius: 4px; }
.card-dk .media.contain { background: var(--dk-bg); }
/* Las fotos son páginas del catálogo con sus propias estrellas: sin las de la web encima. */
.card-dk .media > .star { display: none; }
.card-dk img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card-dk .placeholder { aspect-ratio: 3 / 4; }
.card-dk .media.contain img { object-fit: contain; }
.card-dk .star { position: absolute; top: 12px; left: 12px; color: var(--dk-wine); display: inline-flex; transition: transform .9s var(--ease-spring), color .3s; }
.card-dk:hover .star { transform: rotate(90deg) scale(1.2); color: var(--dk-burgundy); }
.card-dk .text { display: flex; flex-direction: column; gap: 4px; }
.card-dk .name { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.card-dk .name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.card-dk:hover .name a { background-size: 100% 1px; }
.card-dk .material { font-size: 14px; color: var(--dk-ink-soft); }
.price-pill {
  align-self: flex-start; background: var(--dk-espresso); color: var(--dk-bg);
  border-radius: 999px; padding: 6px 18px; font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; transition: background-color .35s;
}
.card-dk:hover .price-pill { background: var(--dk-wine); }

.card-dk.boxed { background: var(--dk-bg); border-radius: 6px; overflow: hidden; gap: 0; transition: transform .6s var(--ease-out), box-shadow .6s; }
.card-dk.boxed:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -30px rgba(48, 28, 27, .7); }
.card-dk.boxed .media { border-radius: 0; }
.card-dk.boxed .text { padding: 16px 16px 20px; gap: 8px; }
.card-dk.boxed .name { font-size: 19px; }
.brand-tag { font-size: 13px; color: #6B4F4B; letter-spacing: .02em; }

.card-nspd {
  --accent: var(--nspd-primary); --accent-ink: var(--nspd-on-pink); --accent-hover: var(--nspd-primary-deep);
  --panel: #fff; --chip-border: #FFC4E3; --card-r: 24px;
  gap: 12px; padding: 12px; border-radius: 24px; color: var(--nspd-ink);
  background: #fff; border: 1px solid var(--nspd-border);
  transition: transform .6s var(--ease-out), box-shadow .6s, border-color .4s;
}
.card-nspd:hover { transform: translateY(-6px); border-color: var(--nspd-pink); box-shadow: 0 28px 46px -28px rgba(255, 108, 185, .5); }
.card-nspd .media { border-radius: 18px; }
.card-nspd .placeholder { aspect-ratio: 4 / 5; border-radius: 18px; }
.card-nspd img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.card-nspd .text { padding: 4px 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.card-nspd .name { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.card-nspd .cat, .card-nspd .brand-tag { font-size: 14px; color: var(--nspd-ink-soft); }
.card-nspd .price { margin-top: 6px; font-weight: 700; font-size: 19px; color: var(--nspd-price); }

/* Añadir rápido desde la tarjeta */
.quick-add {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--panel); background: color-mix(in srgb, var(--panel) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink, inherit); font: 600 14px var(--font); cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(48, 28, 27, .55);
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), background-color .25s, color .25s;
}
.card-dk .quick-add { color: var(--dk-espresso); }
.card-nspd .quick-add { color: var(--nspd-ink); font-weight: 700; }
.card:hover .quick-add, .card:focus-within .quick-add { opacity: 1; transform: none; }
.quick-add:hover { background: var(--accent); color: var(--accent-ink) !important; }
.card.is-picking .quick-add { opacity: 0; pointer-events: none; }

.quick-panel {
  position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px;
  padding: 12px 12px 14px; border-radius: max(6px, calc(var(--card-r) - 6px));
  background: var(--panel); color: var(--ink, inherit);
  box-shadow: 0 20px 44px -18px rgba(48, 28, 27, .6);
  animation: panel-up .4s var(--ease-out);
}
.card-dk .quick-panel { color: var(--dk-espresso); }
.card-nspd .quick-panel { color: var(--nspd-ink); }
.quick-panel.is-leaving { animation: panel-down .22s ease-in forwards; }
.quick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.quick-x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.quick-x:hover { background: rgba(0, 0, 0, .06); }
.quick-values { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-values button {
  flex: 1 1 0; min-width: 48px; min-height: 44px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--chip-border); background: transparent; font-weight: 700; font-size: 14px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.card-nspd .quick-values button { border-radius: 999px; }
.quick-values button:hover, .quick-values button.is-picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quick-values button:active { transform: scale(.94); }

/* Imagen que vuela hacia la bolsa */
.fly-ghost {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--nspd-surface) center / cover no-repeat; border-radius: 22px;
  box-shadow: 0 18px 40px -12px rgba(48, 28, 27, .55); will-change: transform, opacity;
}
.fly-ghost.is-placeholder { background-image: var(--nspd-iris); }

/* ---------- Bandas de llamado ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band .container { padding-block: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band .container > div { min-width: 0; }
.band p { margin: 8px 0 0; max-width: 52ch; }
.band-dk { background: var(--dk-satin); color: var(--dk-bg); }
.band-dk .script-dk { font-size: 28px; color: var(--dk-rose); }
.band-dk p { color: #D9CFC6; }
.band-nspd { background: var(--nspd-iris); }
.band-nspd .script-nspd { font-size: 28px; }

/* ---------- Ficha de producto ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; padding-block: 24px 28px; color: var(--soft); }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.product-media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.theme-dk .product-media { background: var(--dk-bg); border-radius: 4px; aspect-ratio: 3 / 4; }
.theme-dk .product-media.contain { background: var(--dk-bg); }
.theme-dk .product-media:not(.placeholder) > .star { display: none; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .6s var(--ease-out); }
.theme-dk .product-media.contain img { object-fit: contain; padding: 6%; }
.product-media.is-zooming { cursor: zoom-in; }
.product-media.is-zooming img { transform: scale(1.9); }
.product-media .star { position: absolute; z-index: 1; color: var(--dk-wine); display: inline-flex; pointer-events: none; }
.theme-nspd .product-media { border-radius: 999px 999px 32px 32px; }
.zoom-hint {
  position: absolute; z-index: 1; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(48, 28, 27, .72); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s;
}
.product-media.is-zooming .zoom-hint { opacity: 0; }

.product-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.theme-dk .product-info .script-dk { font-size: 26px; }
.theme-dk .product-info h1 { margin: 4px 0 0; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.theme-nspd .product-info .script-nspd { font-size: 26px; }
.theme-nspd .product-info h1 { margin: 4px 0 0; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.product-info .price-pill { font-size: 18px; padding: 8px 22px; }
.nspd-price { margin: 0; font-weight: 700; font-size: 28px; color: var(--nspd-price); }
.product-desc { margin: 0; max-width: 48ch; }

.p-options { display: flex; flex-direction: column; gap: 22px; }
.option { border: 0; padding: 0; margin: 0; min-width: 0; }
.option legend { padding: 0; margin-bottom: 10px; font-weight: 600; transition: color .25s; }
.theme-nspd .option legend { font-weight: 700; }
.option legend span { font-weight: 400; }
.option.is-missing { animation: shake .5s var(--ease-out); }
.option.is-missing legend { color: var(--error); }
.option.is-missing .chip-size, .option.is-missing .swatch-chip { border-color: var(--error); }
.link-underline {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; min-height: 44px; padding: 0 4px;
  border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--dk-wine);
  text-decoration: underline; text-underline-offset: 4px;
}

.intention { background: #fff; border: 1px solid var(--nspd-border); border-radius: 20px; padding: 18px 20px; box-shadow: 0 18px 36px -30px rgba(255, 108, 185, .6); }
.intention h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.intention h2 svg { color: var(--nspd-gold); }
.intention p { margin: 0; color: #7A5640; }

.actions { display: flex; flex-direction: column; gap: 12px; }
.buy-row { display: flex; gap: 12px; }
.buy-row .btn { flex: 1 1 auto; min-width: 0; }
.alert {
  margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 500;
  background: rgba(163, 36, 44, .08); color: var(--error); animation: fade-down .3s var(--ease-out);
}

.qty { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--chip-border); border-radius: 999px; background: var(--panel); }
.qty button {
  width: 44px; height: 54px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: none; cursor: pointer; transition: background-color .2s;
}
.qty button:hover:not(:disabled) { background: var(--muted-bg); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty output.is-tick { animation: tick .3s var(--ease-out); }
.theme-dk .qty { border-radius: 8px; }
.theme-dk .qty button { border-radius: 6px; }
.qty-sm button { width: 34px; height: 34px; }
.qty-sm output { min-width: 22px; font-size: 14px; }

.trust { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.35; color: var(--soft); }
.trust svg { flex: none; color: var(--accent); }
.theme-nspd .trust svg { color: var(--nspd-ink-soft); }

details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease-out);
}
details[open] > summary::after { transform: rotate(135deg); }
details > p { margin: 0 0 18px; font-size: 15px; color: var(--soft); }
details[open] > p { animation: fade-down .4s var(--ease-out); }

.related { margin-top: 96px; padding-bottom: 96px; }
.related h2 { margin: 0 0 28px; font-weight: 800; font-size: 32px; letter-spacing: -.02em; }
.theme-nspd .related h2 { font-weight: 800; font-size: 32px; letter-spacing: -.02em; }

/* Barra fija de compra (móvil) */
.buy-bar {
  position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border-radius: 20px; background: var(--panel); background: color-mix(in srgb, var(--panel) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -18px rgba(48, 28, 27, .55), 0 0 0 1px var(--line);
  transform: translateY(150%); transition: transform .55s var(--ease-out);
}
.buy-bar.is-visible { transform: none; }
.buy-bar-media { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; }
.buy-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.buy-bar-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar-price { font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
.buy-bar .btn { min-height: 48px; padding: 0 20px; }
.theme-dk .buy-bar { border-radius: 10px; }

/* Miniaturas compartidas (bolsa, búsqueda, checkout) */
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--nspd-iris); color: var(--nspd-gold); }
.ph-darkocoa { background: linear-gradient(160deg, #F2EFE7, #CFC5B8); color: var(--dk-wine); }
.line-media img, .mini-media img, .result-media img, .toast-media img, .buy-bar-media img, .co-thumb img { width: 100%; height: 100%; object-fit: cover; }
img.contain { object-fit: contain !important; background: #EAE8DC; }

/* ---------- Diálogos: bolsa, búsqueda y guía de tallas ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(29, 17, 16, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--panel);
  display: flex; flex-direction: column; overscroll-behavior: contain;
  box-shadow: -40px 0 80px -40px rgba(29, 17, 16, .55);
}
.drawer:not([open]) { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.drawer-count { font-size: 15px; font-weight: 500; color: var(--soft); vertical-align: middle; }
.drawer-scroll { position: relative; flex: 1; overflow-y: auto; padding: 4px 24px 24px; overscroll-behavior: contain; }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--panel); }

.ship { margin: 16px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--muted-bg); font-size: 14px; }
.ship p { margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.ship p svg { color: var(--nspd-pink); }
.ship-bar { height: 6px; border-radius: 999px; background: rgba(48, 28, 27, .1); overflow: hidden; }
.ship-bar span {
  display: block; height: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(var(--p));
  background: linear-gradient(90deg, var(--nspd-pink), var(--nspd-primary) 60%, var(--dk-burgundy));
}
.theme-dk .ship-bar span { background: linear-gradient(90deg, var(--dk-taupe), var(--dk-burgundy) 60%, var(--dk-wine)); }
.ship.is-free .ship-bar span { background: linear-gradient(90deg, var(--nspd-pink), var(--nspd-gold), var(--nspd-lilac), var(--nspd-pink)) 0 0 / 300% 100%; }

.bag-group { padding-top: 18px; }
.bag-group-title { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: var(--soft); }
.bag-group-title .logo-img-nspd { height: 44px; }
.bag-group-title .logo-img-dk { height: 28px; }
.lines { list-style: none; margin: 0 -10px; padding: 0; }
.line {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px;
  padding: 14px 10px; border-radius: 14px; overflow: hidden;
}
.line + .line { box-shadow: 0 -1px 0 var(--line); }
.line-media { width: 76px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--dk-surface); }
.line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-name { font-weight: 600; line-height: 1.3; }
.line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-opts { margin: 0; font-size: 13px; color: var(--soft); }
.line-bottom { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.line-remove {
  align-self: start; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: none; color: var(--soft); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.line-remove:hover { color: var(--error); background: rgba(163, 36, 44, .08); }

.xsell { margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--muted-bg); }
.xsell h3 { margin: 0; font-size: 15px; }
.xsell > p { margin: 2px 0 14px; font-size: 13px; color: var(--soft); }
.xsell-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.3; }
.mini-media { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--dk-surface); transition: transform .45s var(--ease-out), box-shadow .45s; }
.mini:hover .mini-media { transform: translateY(-4px); box-shadow: 0 14px 24px -16px rgba(48, 28, 27, .6); }
.mini-name { font-weight: 600; overflow-wrap: anywhere; }
.mini-price { color: var(--soft); font-variant-numeric: tabular-nums; }

.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; }
.sum-row strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.sum-note { margin: 0; font-size: 13px; color: var(--soft); }
.pay-methods { margin: 2px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pay-methods span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--soft); }

.bag-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-block: 40px; text-align: center; }
.bag-empty h3, .co-empty h1 { margin: 8px 0 0; font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.theme-nspd .bag-empty h3 { font-weight: 700; font-size: 26px; }
.bag-empty p, .co-empty p { margin: 0; max-width: 32ch; color: var(--soft); }
.bag-empty-art { position: relative; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 999px; background: var(--nspd-iris); color: var(--nspd-ink); }
.theme-dk .bag-empty-art { background: var(--dk-satin); color: var(--dk-rose); }
.bag-empty-art .spark { position: absolute; display: inline-flex; color: var(--nspd-pink); }
.bag-empty-art .s1 { top: 8px; right: 10px; }
.bag-empty-art .s2 { bottom: 14px; left: 8px; color: var(--nspd-gold); }
.theme-dk .bag-empty-art .spark { color: var(--dk-brass); }
.bag-empty-links { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 10px; }

/* Búsqueda */
.search {
  position: fixed; inset: 0 0 auto 0; width: 100%; max-width: 100%; max-height: min(88vh, 760px);
  margin: 0; padding: 0; border: 0; border-radius: 0 0 28px 28px; overflow: auto;
  background: var(--panel); box-shadow: 0 40px 80px -40px rgba(29, 17, 16, .55);
}
.search-inner { max-width: 880px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 28px; }
.search-box { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); transition: border-color .3s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box > svg { flex: none; color: var(--soft); }
.search-box input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; outline: none; font-weight: 600; font-size: clamp(22px, 3vw, 28px); }
.search-box input::placeholder { color: var(--soft); opacity: .6; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-label { margin: 22px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.search-empty { margin: 24px 0 0; color: var(--soft); }
.search-results { display: flex; flex-direction: column; gap: 2px; }
.result {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 14px; transition: background-color .2s;
}
.result:hover, .result:focus-visible { background: var(--muted-bg); }
.result-media { width: 52px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--dk-surface); }
.result-text { display: flex; flex-direction: column; min-width: 0; }
.result-name { font-weight: 600; }
.result-name mark { background: rgba(255, 108, 185, .5); color: inherit; border-radius: 3px; padding: 0 1px; }
.result-meta { font-size: 13px; color: var(--soft); }
.result-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Guía de tallas */
.modal {
  width: min(540px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
  border-radius: 20px; background: var(--panel); box-shadow: 0 40px 80px -30px rgba(29, 17, 16, .6);
}
.theme-dk .modal { border-radius: 8px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 6px 24px; }
.modal-head h2 { margin: 0; font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.modal-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-body > p:first-child { margin: 0; color: var(--soft); font-size: 15px; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.size-table tbody th { font-weight: 700; font-size: 18px; }

/* Avisos */
.toasts {
  position: fixed; z-index: 60; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(420px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  transition: bottom .4s var(--ease-out);
}
.has-buy-bar .toasts { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
/* Botón fijo de WhatsApp: debajo de los avisos, y sube cuando aparece la barra de compra en celular. */
.wa-flotante {
  position: fixed; z-index: 30; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: #1FA855; color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-spring), background-color .2s, bottom .3s var(--ease-out);
}
.wa-flotante:hover { background: #178C46; transform: scale(1.06); }
.has-buy-bar .wa-flotante { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.drawer .toasts { position: absolute; top: 76px; bottom: auto; left: 12px; right: 12px; width: auto; transform: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 16px; background: var(--hub-accent); color: #fff;
  box-shadow: 0 26px 50px -20px rgba(29, 17, 16, .65); animation: toast-in .55s var(--ease-spring);
}
.theme-dk .toast { background: var(--dk-espresso); border-radius: 8px; }
.theme-nspd .toast { background: var(--nspd-ink); }
.toast.is-leaving { animation: toast-out .28s ease-in forwards; }
.toast-media { flex: none; width: 44px; height: 54px; border-radius: 10px; overflow: hidden; }
.toast-text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.toast-text span { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-action { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .2s; }
.toast-action:hover { background: rgba(255, 255, 255, .28); }
.toast-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; }
.toast-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Checkout ---------- */
.checkout-page { padding-block: 16px 96px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.co-title { margin: 8px 0 8px; }
.co-title .script-nspd { font-size: 24px; }
.co-title h1, .co-success h1 { margin: 2px 0 0; font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.co-form { display: flex; flex-direction: column; gap: 28px; min-width: 0; counter-reset: paso; }
.co-step:not([hidden]) { counter-increment: paso; }
.step-n::before { content: counter(paso); }
.co-step { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.co-step h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; }
.step-n {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .full { grid-column: 1 / -1; }
.fields > [data-shipping][hidden] + .field { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--soft); }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--chip-border); border-radius: 12px;
  background: var(--panel); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
select.input { appearance: none; padding-right: 40px; cursor: pointer; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5A57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.input:hover { border-color: #BFAFA8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 30, 42, .12); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(163, 36, 44, .14); }
.input::placeholder { color: #A99C97; }
.field-error { margin: 0; font-size: 13px; color: var(--error); animation: fade-down .25s var(--ease-out); }
.field.is-missing { animation: shake .5s var(--ease-out); }

.pay-options { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.pay-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  border: 1.5px solid var(--chip-border); border-radius: 14px; background: var(--panel);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.pay-option:hover { border-color: #BFAFA8; }
.pay-option:has(input:checked) { border-color: var(--accent); background: #FCF8F6; box-shadow: 0 0 0 3px rgba(59, 30, 42, .1); }
.pay-option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.pay-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--muted-bg); color: var(--accent); transition: transform .5s var(--ease-spring); }
.pay-option:has(input:checked) .pay-icon { transform: rotate(-6deg) scale(1.06); background: var(--nspd-pink); color: var(--nspd-on-pink); }
.pay-text { display: flex; flex-direction: column; min-width: 0; }
.pay-title { font-weight: 600; }
.pay-desc { font-size: 14px; color: var(--soft); }
.pay-note { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--soft); }
.pay-note svg { flex: none; margin-top: 2px; color: var(--ok); }
.check-field { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; cursor: pointer; }
.check-field input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check-field a { text-decoration: underline; text-underline-offset: 3px; }

.co-aside { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.co-summary { padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.co-summary > summary { min-height: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.co-summary > summary::after { display: none; }
.co-summary > summary strong { font-variant-numeric: tabular-nums; }
.co-lines { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 14px; }
.co-lines li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.co-thumb { position: relative; width: 58px; height: 70px; border-radius: 10px; background: var(--dk-surface); }
.co-thumb > img, .co-thumb > .ph { border-radius: 10px; overflow: hidden; }
.co-q {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 700 12px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--panel);
}
.co-line-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.co-line-name { font-weight: 600; font-size: 15px; }
.co-line-meta { font-size: 13px; color: var(--soft); }
.co-line-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-totals { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; }
.co-totals dt { color: var(--soft); }
.co-totals dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.co-totals .co-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.co-total dt { color: var(--ink); font-weight: 600; }
.co-total dd { font-size: 24px; font-weight: 700; }
.co-total small { font-size: 13px; font-weight: 400; color: var(--soft); }
.free { color: var(--ok); font-weight: 600; }
.co-summary .sum-note { margin-top: 10px; }

.co-empty, .co-success { max-width: 620px; margin: 24px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.co-success h1:focus { outline: none; }
.co-success .script-nspd { font-size: 28px; }
.success-lead { margin: 0; max-width: 52ch; }
.success-summary { width: 100%; margin-top: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); text-align: left; }
.success-summary .co-lines { padding-top: 0; }
.success-mark svg { display: block; }
.success-mark circle { fill: none; stroke: var(--nspd-pink); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 0; }
.success-mark path { fill: none; stroke: var(--hub-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 0; }
.confetti { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Páginas de ayuda, legales y 404 ---------- */
.text-page { max-width: 780px; padding-block: 48px 96px; }
.text-page h1 { margin: 0; font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.text-page h1 + p { margin-top: 20px; }
.text-page .lead { margin: 10px 0 28px; max-width: 60ch; font-size: 17px; color: var(--soft); }
.page-nav { margin-bottom: 12px; }
.page-nav .chip { min-height: 40px; }
.text-page section { padding-block: 32px 8px; border-top: 1px solid var(--line); margin-top: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.text-page h2 { margin: 0 0 12px; font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.text-page h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 700; }
.text-page p, .text-page li { max-width: 68ch; }
.text-page p { margin: 0 0 12px; }
.text-page ol, .text-page ul { margin: 0 0 12px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.text-page .table-wrap { margin: 8px 0 12px; }
.text-link { text-decoration: underline; text-underline-offset: 3px; }
.review-note { margin: 0; padding: 10px 16px; border-radius: 12px; background: #FFF4D6; color: #6B4E12; font-size: 14px; }
.not-found { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found .lead { margin-inline: auto; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--dk-night); color: #E6DDD5; padding: 64px var(--pad) 32px; }
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--nspd-pink), var(--nspd-lilac) 28%, var(--nspd-gold) 50%, var(--dk-rose) 72%, var(--dk-burgundy));
}
.site-footer .cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer .brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer .brand-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.site-footer .logo-img-nspd { height: 72px; }
.site-footer .logo-img-dk { height: 34px; }
.site-footer .brand p { margin: 8px 0 0; font-size: 14px; color: #BFB1A9; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.site-footer nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out), color .3s; }
.site-footer nav a:hover { color: #fff; background-size: 100% 1px; }
/* Íconos de redes: área de 44 px para el dedo; el margen alinea el trazo con el título. */
.site-footer .social { display: flex; flex-direction: column; align-items: flex-start; margin: -6px 0 0 -10px; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: none; white-space: nowrap; transition: background-color .25s, color .3s; }
.site-footer .social a:hover { background: rgba(255, 255, 255, .2); }
.site-footer .social svg { flex: 0 0 24px; }
.site-footer h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #fff; }
.site-footer .copy { max-width: var(--max); margin: 40px auto 0; font-size: 13px; color: #A99A92; }
/* En el inicio y en NSPD el footer va en rosa chicle con texto chocolate, como el logo */
.theme-hub .site-footer, .theme-nspd .site-footer { background: var(--nspd-primary); color: var(--nspd-on-pink); }
.theme-hub .site-footer::before, .theme-nspd .site-footer::before { display: none; }
:is(.theme-hub, .theme-nspd) .site-footer :is(.brand p, .copy, h3, nav a:hover) { color: var(--nspd-on-pink); }

/* ---------- Responsive ---------- */
/* El pie tiene cinco columnas: los tres logos necesitan una más ancha o una fila propia. */
@media (min-width: 1100px) {
  .site-footer .cols { grid-template-columns: minmax(290px, 1.5fr) repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .site-footer .brand { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .product-media { position: sticky; top: calc(var(--header-h) + 24px); }
  .buy-bar { display: none; }
  .co-summary > summary { pointer-events: none; }
}
@media (max-width: 959px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .co-aside { position: static; order: -1; }
  .co-summary { padding: 16px 18px; }
  .co-summary:not([open]) > summary { padding-bottom: 0; border-bottom: 0; }
  .co-summary > summary::after { display: block; }
  [data-page="producto"] .site-footer { padding-bottom: 120px; }
}
@media (max-width: 860px) {
  .hub-header .hub-logo { flex: 1 1 0; min-width: 0; }
  .hub-header .hub-logo .logo-img-nspd { height: 48px; }
}
@media (max-width: 720px) {
  .store-header { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; }
  .store-header .back-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .store-header .store-logo { min-width: 0; }
  .store-header .store-logo .logo-img-nspd { height: 48px; }
  .store-header .store-logo .logo-img-dk { height: 34px; }
  .store-header .icon-actions { grid-column: 3; }
}
@media (max-width: 640px) {
  .wa-flotante { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .toolbar .chips, .section-head .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    width: calc(100% + 2 * var(--pad)); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  }
  .toolbar .chips::-webkit-scrollbar, .section-head .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
  .p-options .chips { flex-wrap: wrap; }
  .toolbar-end { width: 100%; justify-content: space-between; margin-left: 0; }
  .section-head .chips { margin-top: 4px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .co-step { padding: 20px 16px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-dk .name { font-size: 17px; }
  .card-dk.boxed .name { font-size: 17px; }
  .card-dk.boxed .text { padding: 12px 12px 16px; }
  .card-dk .material { font-size: 13px; }
  .price-pill { padding: 4px 12px; font-size: 14px; }
  .card-nspd { padding: 8px; border-radius: 20px; --card-r: 20px; }
  .card-nspd .name { font-size: 17px; }
  .card-nspd .price { font-size: 17px; }
  .card-nspd .media, .card-nspd img, .card-nspd .placeholder { border-radius: 14px; }
  .quick-panel { left: 6px; right: 6px; bottom: 6px; padding: 10px; }
  .quick-values button { min-width: 40px; }
  .related h2 { font-size: 30px; }
  .theme-nspd .related h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .card-dios { grid-column: 1 / -1; }
  .dios-figure img { width: min(100%, 300px); }
  .dios-intro h1 { font-size: 32px; }
}
@media (hover: none) {
  .quick-add { left: auto; width: 44px; padding: 0; opacity: 1; transform: none; }
  .quick-add span { display: none; }
  .zoom-hint { display: none; }
}

/* ---------- Animaciones ---------- */
.will-reveal { opacity: 0; transform: translateY(28px); }
.will-reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  .write { animation: write 1.7s cubic-bezier(.6, .05, .3, 1) .15s backwards; }
  .rise { animation: rise .9s var(--ease-out) backwards; animation-delay: calc(.3s + var(--d, 0) * .12s); }
  .aura { animation: drift 18s ease-in-out infinite alternate; }
  .placeholder::before { animation: iris-spin 16s linear infinite; }
  .placeholder-dk::before { animation: none; }
  .ph-star { animation: float 4.5s ease-in-out infinite; }
  .twinkle, .bag-empty-art .spark { animation: twinkle 3.4s ease-in-out infinite; }
  .twinkle.t2, .bag-empty-art .s2 { animation-delay: 1.1s; }
  .twinkle.t3 { animation-delay: 2.2s; }
  .chooser-prompt { animation: fade-down .8s var(--ease-out) .5s backwards; }
  .grid > .card { animation: card-in .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  .product-media > img { animation: media-in 1.2s var(--ease-out) backwards; }
  .product-info > * { animation: rise .8s var(--ease-out) backwards; }
  .product-info > :nth-child(2) { animation-delay: .06s; }
  .product-info > :nth-child(3) { animation-delay: .12s; }
  .product-info > :nth-child(4) { animation-delay: .18s; }
  .product-info > :nth-child(5) { animation-delay: .24s; }
  .product-info > :nth-child(6) { animation-delay: .3s; }
  .product-info > :nth-child(n+7) { animation-delay: .36s; }
  .store-intro > * { animation: rise .9s var(--ease-out) backwards; }
  .store-intro > :nth-child(2) { animation-delay: .15s; }
  .chip-size[aria-pressed="true"] { animation: pop .4s var(--ease-spring); }
  .ship-bar span { animation: grow 1s var(--ease-out) backwards; }
  .ship.is-free .ship-bar span { animation: grow 1s var(--ease-out) backwards, shimmer 3s linear infinite; }
  .drawer[open] { animation: drawer-in .55s var(--ease-out); }
  .drawer[open]::backdrop, .search[open]::backdrop, .modal[open]::backdrop { animation: fade-in .4s ease; }
  .drawer.is-closing { animation: drawer-out .26s ease-in forwards; }
  .is-closing::backdrop { animation: fade-out .26s ease forwards; }
  .drawer.is-entering .line, .drawer.is-entering .bag-group-title, .drawer.is-entering .xsell { animation: line-in .6s var(--ease-out) backwards; animation-delay: calc(.12s + var(--i, 0) * 70ms); }
  .line.is-new { animation: line-new 1.8s var(--ease-out); }
  .drawer.is-entering .line.is-new { animation: line-in .6s var(--ease-out) backwards, line-new 1.8s var(--ease-out) .4s; }
  .search[open] { animation: search-in .5s var(--ease-out); }
  .search.is-closing { animation: search-out .26s ease-in forwards; }
  .result { animation: rise .45s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
  .modal[open] { animation: modal-in .5s var(--ease-spring); }
  .modal.is-closing { animation: modal-out .26s ease-in forwards; }
  .co-step { animation: rise .8s var(--ease-out) backwards; }
  .co-step:nth-of-type(2) { animation-delay: .1s; }
  .co-step:nth-of-type(3) { animation-delay: .2s; }
  .success-mark circle { animation: draw-circle .9s var(--ease-out) backwards; }
  .success-mark path { animation: draw-check .6s var(--ease-out) .55s backwards; }
  .co-success > :not(.success-mark) { animation: rise .8s var(--ease-out) .2s backwards; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes write { from { clip-path: inset(-40% 100% -40% -10%); } to { clip-path: inset(-40% -10% -40% -10%); } }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(3%, 3%, 0) rotate(10deg) scale(1.08); }
}
@keyframes iris-spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(8deg); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes media-in { from { opacity: 0; transform: scale(1.06); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes bag-bump { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-10deg); } 60% { transform: scale(.94) rotate(5deg); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-circle { from { stroke-dashoffset: 190; } }
@keyframes draw-check { from { stroke-dashoffset: 50; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
@keyframes panel-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes panel-down { to { opacity: 0; transform: translateY(16px); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes search-in { from { transform: translateY(-100%); } }
@keyframes search-out { to { transform: translateY(-100%); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes line-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes line-new { 0%, 30% { background: rgba(255, 108, 185, .28); } 100% { background: transparent; } }
@keyframes grow { from { transform: scaleX(var(--from, 0)); } }
@keyframes shimmer { to { background-position: 300% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
