/* ============================================================
   NICCOLA — Design System (adaptado del de Limonni, 2026-10-15)
   "Botánico suave" — misma estructura/funcionalidad que Limonni,
   paleta e identidad propias de Niccola.

   Paleta: #F4F1E8 crema · #33362B carbón · #6F745F oliva
           #E4E6DA oliva claro · #7D8073 grafito · #FFFDF6 tarjeta
   Tipografía: Fraunces (headings) + Poppins (body)
               + JetBrains Mono (data/prices, sin cambios)
   Firma: Live Data Bar — TRM + país en tiempo real arriba del header
   (heredada de Limonni, funciona igual)

   Los NOMBRES de las variables (--linen, --black, --gold...) se
   mantienen idénticos a los de Limonni a propósito: todo el resto del
   CSS y los componentes ya los usan por nombre, y cambiar los nombres
   habría obligado a tocar cientos de reglas sin ganar nada. Lo único
   que cambia aquí son los VALORES, tomados de la paleta real de
   Niccola ya usada en modulos/landing/nicolla.php.
   ============================================================ */

:root {
  /* Palette (valores Niccola — oliva/crema, ver modulos/landing/nicolla.php) */
  --linen:    #F4F1E8;  /* crema */
  --black:    #33362B;  /* carbón (reemplaza la obsidiana de Limonni) */
  --black-2:  #262920;
  --gold:     #6F745F;  /* oliva (reemplaza el oro de Limonni) */
  --gold-2:   #565B47;  /* oliva oscuro */
  --stone:    #EAE5D7;  /* crema-2 */
  --stone-2:  #E4E6DA;  /* oliva claro */
  --ink:      #33362B;
  --muted:    #7D8073;  /* grafito */
  --paper:    #FFFDF6;  /* tarjeta */
  --error:    #8B1A0F;
  --success:  #1A5C2A;

  /* Country accent (overridden by JS) */
  --country-1: #6F745F;
  --country-2: #F4F1E8;
  --country-3: #33362B;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-data:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing & sizing */
  --data-bar-h: 44px; /* antes 32px — agrandado para las píldoras de país/moneda/idioma (23-sep-2026) */
  --header-h:   64px;
  --max-w:      1280px;
  --chat-w:     400px;
  --radius:     2px;

  /* Motion */
  --ease:   cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur:    .22s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13,13,13,.08);
  --shadow-md: 0 8px 32px rgba(13,13,13,.12);
  --shadow-lg: 0 24px 64px rgba(13,13,13,.18);
  --shadow-xl: 0 40px 100px rgba(13,13,13,.24);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--linen); color: var(--ink);
  font-family: var(--font-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ============================================================
   LIVE DATA BAR — la firma tecnológica
   ============================================================ */
.data-bar {
  height: var(--data-bar-h);
  background: var(--black);
  color: rgba(250,248,245,.55);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  font-family: var(--font-data); font-size: 10.5px; letter-spacing: .08em;
  overflow: hidden; position: relative; z-index: 50;
}
.data-bar-ticker {
  display: flex; align-items: center; gap: 20px;
  flex: 1; overflow: hidden;
}
.data-bar-item { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.data-bar-item .label { color: rgba(250,248,245,.35); }
.data-bar-item .value { color: rgba(250,248,245,.8); }
.data-bar-item .highlight { color: var(--gold); font-weight: 500; }
.data-bar-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: .3; }
}
/* ── Píldoras de país / moneda / idioma (23-sep-2026) ────────────────
   Rediseño pedido por Ramiro: más grandes que el texto plano de antes,
   y cada una con su propia identidad visual para reconocerlas de un
   vistazo, sin tener que leer la etiqueta:
     · País   → píldora neutra (fondo blanco muy tenue) con la bandera
                real y una flechita, porque lleva a otra pantalla.
     · Moneda → píldora con acento DORADO, el color de marca — un "$"
                como distintivo — cambia con un clic, sin salir de la
                página.
     · Idioma → píldora "fantasma" (solo contorno) con un globo — mismo
                comportamiento de un clic que moneda, pero looks
                deliberadamente distinto para no confundirse con ella.
   ──────────────────────────────────────────────────────────────────── */
.pref-pills { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 16px; }

.pref-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px; border-radius: 999px;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .06em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; background: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .12s var(--ease);
}
.pref-pill:active { transform: scale(.96); }
.pref-pill:disabled { opacity: .5; cursor: default; }
.pref-pill-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.pref-pill-text { color: inherit; }

/* País — neutra, con bandera real */
.pref-pill--pais {
  background: rgba(250,248,245,.07); border-color: rgba(250,248,245,.16);
  color: rgba(250,248,245,.85);
}
.pref-pill--pais:hover { background: rgba(250,248,245,.13); border-color: rgba(250,248,245,.26); }
.pref-pill-icon--flag { font-size: 15px; }
.pref-pill-caret { opacity: .5; flex-shrink: 0; }

/* Moneda — acento dorado de marca */
.pref-pill--moneda {
  background: rgba(196,152,74,.14); border-color: rgba(196,152,74,.4);
  color: var(--gold);
}
.pref-pill--moneda:hover { background: rgba(196,152,74,.24); border-color: rgba(196,152,74,.6); }
.pref-pill-icon--moneda {
  width: 16px; height: 16px; border-radius: 50%; border: 1.4px solid currentColor;
  font-size: 10.5px; font-weight: 700;
}

/* Idioma — píldora fantasma (solo contorno) */
.pref-pill--idioma {
  background: transparent; border-color: rgba(250,248,245,.3);
  color: rgba(250,248,245,.75);
}
.pref-pill--idioma:hover { background: rgba(250,248,245,.08); border-color: rgba(250,248,245,.5); color: rgba(250,248,245,.95); }
.pref-pill-icon--globo { flex-shrink: 0; }

@media (max-width: 640px) {
  /* Poco espacio: el mensaje del ticker cede el lugar a las píldoras,
     y la píldora de país se queda solo con la bandera (sin el nombre
     del país) — moneda e idioma ya son cortos (COP/USD, ES/EN) y no
     necesitan recortarse. */
  .data-bar-ticker { display: none; }
  .pref-pills { margin-left: 0; }
  .pref-pill--pais .pref-pill-text { display: none; }
  .pref-pill--pais { padding: 0 10px; }
}

/* Country stripe — top of header, 3px bandera */
.country-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--country-1) 33.3%, var(--country-2) 33.3% 66.6%, var(--country-3) 66.6%);
  transition: background .6s var(--ease);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stone);
  display: flex; align-items: center;
  padding: 0 24px; gap: 0;
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background var(--dur);
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(13,13,13,.06); }

.site-nav-left  { display: flex; align-items: center; gap: 4px; }
.site-nav-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.wordmark {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  text-decoration: none; line-height: 1;
}
.wordmark-letter {
  width: 30px; height: 30px; border-radius: 50%; background: var(--black);
  color: var(--linen); font-family: var(--font-display); font-style: italic;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  flex-shrink: 0;
}
.wordmark-text {
  font-family: var(--font-body); letter-spacing: .24em; font-size: 12px; font-weight: 700;
  color: var(--black); text-transform: uppercase; margin-top: 2px;
}

/* Desktop nav links */
.nav-links {
  display: none;
}
@media (min-width: 960px) {
  .nav-links {
    display: flex; align-items: center; gap: 2px; flex: 1;
  }
  .nav-links a {
    padding: 8px 14px; font-size: 12.5px; letter-spacing: .06em;
    font-weight: 500; color: var(--muted); text-transform: uppercase;
    transition: color var(--dur); white-space: nowrap;
  }
  .nav-links a:hover { color: var(--black); }
  .wordmark { flex: none; margin: 0 20px; }
  /* El botón del menú lateral se mantiene visible TAMBIÉN en escritorio:
     antes se ocultaba (display:none), dejando el drawer con todas las
     categorías y subcategorías completamente inaccesible en pantallas
     grandes — solo se podía abrir desde el celular. */
  .site-nav-left .icon-btn { display: inline-flex; }

  /* Submenús del nav superior — categorías y subcategorías reales */
  .nav-link-item { position: relative; }
  .nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
    background: var(--paper, #fff); border: 1px solid var(--stone); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(13,13,13,.1); padding: 8px; min-width: 190px;
    opacity: 0; visibility: hidden; transition: opacity .15s var(--ease), transform .15s var(--ease);
    z-index: 50;
  }
  .nav-link-item.tiene-dropdown:hover .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown a {
    display: block; padding: 9px 14px !important; font-size: 12px !important;
    white-space: nowrap; border-radius: 6px; color: var(--ink) !important;
  }
  .nav-dropdown a:hover { background: var(--stone); color: var(--black) !important; }
}

/* ============================================================
   CATEGORÍAS EN CÍRCULO (23-sep-2026)
   Reemplaza el menú de texto que estaba a los lados del logo — vive
   en layout_header.php, así que aparece en todas las páginas.
   ============================================================ */
.cat-circles-strip {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(250,248,245,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone);
  padding: 14px 0;
}
.cat-circles {
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
  padding: 0 20px; -webkit-overflow-scrolling: touch;
  /* 23-sep-2026: centrados cuando caben todos sin scroll (desktop con
     pocas categorías); si no caben, siguen siendo scrolleables — con
     overflow-x:auto el navegador deja ver el contenido excedente hacia
     ambos lados igual, así que centrar no rompe el scroll en mobile. */
  max-width: 1100px; margin: 0 auto;
  /* 27-sep-2026: con los círculos ordenados por ventas la fila pasó de 8 a
     12 y ya no cabe (1.220px contra 1.100). Con "center" a secas, cuando
     el contenido desborda, el navegador recorta el PRINCIPIO y no deja
     llegar a él con scroll: "Todo" y la colección nueva quedaban
     inalcanzables. "safe center" centra solo mientras quepa y se comporta
     como flex-start cuando desborda. Se deja la línea anterior como
     respaldo para los navegadores que no entiendan "safe". */
  justify-content: center;
  justify-content: safe center;
}
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0; width: 76px;
}
.cat-circle-img {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--stone) center/cover no-repeat;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur), transform var(--dur);
  position: relative;
}
.cat-circle-img-todo {
  background: var(--black); color: var(--gold);
  font-size: 22px;
}
.cat-circle-label {
  font-size: 11.5px; letter-spacing: .03em; color: var(--muted);
  text-align: center; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px;
  transition: color var(--dur);
}
.cat-circle:hover .cat-circle-img { transform: scale(1.06); }
.cat-circle.is-active .cat-circle-img { border-color: var(--gold-2, var(--gold)); }
.cat-circle.is-active .cat-circle-label { color: var(--black); font-weight: 600; }

/* "Bolita" de la última colección — mismo círculo, con una etiqueta
   "Nuevo" superpuesta para distinguirla de una categoría normal. */
.cat-circle-badge {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--black);
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(13,13,13,.25);
}

/* Segunda fila: subcategorías de la categoría activa (ej. dentro de
   Sets: Set falda / Set pantalón), como chips pequeños en vez de
   círculos con foto — no todas las subcategorías tienen una imagen
   propia, y esto evita inventar una. */
.cat-circles-sub {
  max-width: 1100px; margin: 8px auto 0; gap: 10px; padding: 0 20px 2px;
}
.cat-circle-sm {
  width: auto; flex-direction: row; gap: 0;
}
.cat-circle-sm .cat-circle-label {
  max-width: none; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  background: var(--stone); border: 1px solid transparent;
}
.cat-circle-sm.is-active .cat-circle-label {
  background: var(--black); color: var(--linen); font-weight: 600;
}
.cat-circle-sm:hover .cat-circle-label { border-color: var(--gold-2, var(--gold)); }

@media (max-width: 640px) {
  .cat-circles { gap: 18px; justify-content: flex-start; }
  .cat-circle { width: 64px; }
  .cat-circle-img { width: 58px; height: 58px; }
  .cat-circle-label { max-width: 64px; }
}

/* ============================================================
   NAVIGATION DRAWER (mobile)
   ============================================================ */
.nav-drawer {
  position: fixed; inset: 0 auto 0 0; width: min(360px,90vw);
  background: var(--black); color: var(--linen);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 200; display: flex; flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-top {
  padding: 60px 32px 32px;
  border-bottom: 1px solid rgba(250,248,245,.08);
}
.nav-drawer-top .eyebrow { color: var(--gold); margin-bottom: 20px; }
.nav-drawer-cats { list-style: none; }
.nav-drawer-cats li { border-bottom: 1px solid rgba(250,248,245,.06); }
.nav-drawer-cats a {
  display: block; padding: 16px 0;
  font-family: var(--font-display); font-size: 28px; font-style: italic;
  color: var(--linen); transition: color var(--dur), padding-left var(--dur);
}
.nav-drawer-cats a:hover { color: var(--gold); padding-left: 8px; }

/* Subcategorías anidadas — sección "categorías y subcategorías" del pedido */
.nav-drawer-cat-fila { display: flex; align-items: center; justify-content: space-between; }
.nav-drawer-cat-fila a { flex: 1; }
.nav-drawer-expandir {
  background: none; border: none; color: rgba(250,248,245,.5); cursor: pointer;
  padding: 12px 4px; display: flex; align-items: center; transition: transform .2s var(--ease, ease);
}
.nav-drawer-cat-item.is-expandido .nav-drawer-expandir { transform: rotate(180deg); color: var(--gold); }
.nav-drawer-subs {
  list-style: none; max-height: 0; overflow: hidden;
  transition: max-height .25s var(--ease, ease);
  padding-left: 14px;
}
.nav-drawer-cat-item.is-expandido .nav-drawer-subs { max-height: 400px; }
.nav-drawer-subs a {
  display: block; padding: 9px 0; font-size: 13px; color: rgba(250,248,245,.65); text-decoration: none;
}
.nav-drawer-subs a:hover { color: var(--gold); padding-left: 6px; }
.nav-drawer-bottom { padding: 28px 32px 40px; }
.nav-drawer-contact a {
  display: block; padding: 8px 0; font-size: 13.5px;
  color: rgba(250,248,245,.45); transition: color var(--dur);
}
.nav-drawer-contact a:hover { color: var(--gold); }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(13,13,13,.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; z-index: 190;
  transition: opacity .32s;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-data); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.section-title {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(32px, 5vw, 56px); color: var(--black);
  line-height: 1.08; letter-spacing: -.01em;
}
.hairline { height: 1px; background: var(--stone); }

/* 23-sep-2026: encabezado de sección reutilizable para bloques de feed
   personalizado fuera del inicio (favoritos.php, capsulas.php) — copia
   sitewide de las reglas .home-section* que index.php ya traía
   embebidas en su propio <style>, para no duplicar el CSS a mano en
   cada página nueva que sume un feed de recomendaciones. */
.home-section { padding: clamp(48px, 6vw, 84px) clamp(20px, 5vw, 64px); }
.home-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.home-section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); color: var(--black);
}
.home-section-head a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
                       color: var(--gold-2); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: all var(--dur) var(--ease); cursor: pointer;
}
.btn-primary {
  background: var(--black); color: var(--linen); border: none;
}
.btn-primary:hover { background: var(--black-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: none; color: var(--black); border: 1px solid var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--linen); }

.btn-outline {
  background: transparent; color: var(--black); border: 1.5px solid var(--stone-2);
}
.btn-outline:hover { border-color: var(--black); }

.btn-gold {
  background: var(--gold); color: var(--paper); border: none;
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }

.btn-sm { padding: 10px 20px; font-size: 11px; }
.btn-full { width: 100%; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-family: var(--font-data); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.field-input {
  border: none; border-bottom: 1.5px solid var(--stone);
  background: transparent; padding: 10px 0;
  font-size: 15px; font-family: var(--font-body); color: var(--ink);
  transition: border-color var(--dur); width: 100%;
}
.field-input:focus { outline: none; border-bottom-color: var(--gold); }
.field-input.has-error { border-bottom-color: var(--error); }

/* ============================================================
   HOMEPAGE — INDEX
   ============================================================ */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100dvh - var(--data-bar-h) - var(--header-h));
  background: var(--black);
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 58% 1fr; }
}

.hero-visual {
  position: relative; overflow: hidden;
  background: var(--black-2); min-height: 60vw;
}
@media (min-width: 960px) { .hero-visual { min-height: unset; } }

.hero-visual-grid {
  display: grid; grid-template-columns: 1fr 1fr; height: 100%; gap: 2px;
}
.hero-visual-grid img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.75) saturate(.9);
  transition: filter 1s var(--ease);
}
.hero-visual:hover .hero-visual-grid img { filter: brightness(.85) saturate(1); }

.hero-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,.2) 0%, rgba(13,13,13,.65) 100%);
}

.hero-visual-text {
  position: absolute; bottom: 40px; left: 36px; right: 36px;
  z-index: 2; color: var(--linen);
}
.hero-visual-text .eyebrow { color: var(--gold); margin-bottom: 12px; }
.hero-visual-text h1 {
  font-family: var(--font-display); font-size: clamp(42px, 6vw, 80px);
  font-weight: 400; font-style: italic; line-height: 1.02;
  letter-spacing: -.02em;
}
.hero-visual-text p {
  margin-top: 14px; font-size: 14px; line-height: 1.65;
  color: rgba(250,248,245,.6); max-width: 380px;
}

/* Hero chat panel */
.hero-chat {
  display: flex; flex-direction: column;
  background: var(--linen);
  height: calc(100dvh - var(--data-bar-h) - var(--header-h));
  min-height: 500px;
}

/* ---- Colecciones highlight ---- */
.collections-section { padding: 80px 0; }
.collections-section .container { display: flex; flex-direction: column; gap: 40px; }
.collections-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
@media (min-width: 600px) { .collections-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .collections-grid { grid-template-columns: repeat(4, 1fr); } }

.collection-card {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  background: var(--stone); display: block; color: var(--paper);
  text-decoration: none;
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.collection-card:hover img { transform: scale(1.04); }
.collection-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.7) 0%, transparent 60%);
}
.collection-card-text {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
}
.collection-card-text .cat-name {
  font-family: var(--font-display); font-style: italic;
  font-size: 20px; line-height: 1.1;
}
.collection-card-text .cat-count {
  font-family: var(--font-data); font-size: 10px; letter-spacing: .12em;
  color: rgba(250,248,245,.55); margin-top: 3px;
}

/* ---- Nuevos diseños ---- */
.new-arrivals { padding: 0 0 80px; }
.new-arrivals .container { display: flex; flex-direction: column; gap: 32px; }
.arrivals-scroll {
  display: flex; gap: 3px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 2px;
}
.arrivals-scroll::-webkit-scrollbar { display: none; }
.arrival-card {
  flex: 0 0 240px; background: var(--paper);
  text-decoration: none; color: var(--ink);
  position: relative; overflow: hidden;
  transition: box-shadow var(--dur);
}
@media (min-width: 600px) { .arrival-card { flex: 0 0 280px; } }
.arrival-card img {
  width: 100%; height: 320px; object-fit: cover; background: var(--stone);
  transition: transform .5s var(--ease);
}
.arrival-card:hover img { transform: scale(1.04); }
.arrival-card:hover { box-shadow: var(--shadow-md); }
.arrival-card-body { padding: 14px 16px 18px; }
.arrival-card-title { font-size: 13.5px; line-height: 1.35; margin-bottom: 6px; }
.arrival-card-price { font-family: var(--font-data); font-size: 13px; color: var(--gold); }
.arrival-card-new {
  position: absolute; top: 12px; right: 12px;
  background: var(--black); color: var(--linen);
  font-family: var(--font-data); font-size: 9px; letter-spacing: .14em;
  padding: 4px 8px; text-transform: uppercase;
}

/* ---- Value props ---- */
.value-props { background: var(--black); color: var(--linen); padding: 48px 0; }
.value-props .container {
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) { .value-props .container { grid-template-columns: repeat(3, 1fr); } }
.value-prop { display: flex; flex-direction: column; gap: 10px; }
.value-prop svg { color: var(--gold); }
.value-prop-title { font-family: var(--font-display); font-style: italic; font-size: 20px; }
.value-prop-desc { font-size: 13.5px; color: rgba(250,248,245,.5); line-height: 1.6; }

/* ============================================================
   CHAT — GATE
   ============================================================ */
.chat-gate {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 32px; text-align: center;
}
.gate-avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--black);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  position: relative;
}
.gate-avatar::after {
  content: ''; position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #22C55E; border: 2px solid var(--linen);
}
.gate-avatar span {
  font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--linen);
}
.gate-title {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(28px, 7vw, 38px); color: var(--black); margin-bottom: 10px;
}
.gate-sub { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 300px; margin: 0 auto 32px; }
.gate-form { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.gate-form-footer { font-family: var(--font-data); font-size: 10px; letter-spacing: .1em; color: var(--muted); text-align: center; }

/* ============================================================
   CHAT — THREAD
   ============================================================ */
.chat-thread {
  flex: 1; overflow-y: auto; padding: 20px 18px 10px;
  display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.chat-thread::-webkit-scrollbar { width: 3px; }
.chat-thread::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 2px; }

.msg { max-width: 88%; font-size: 14px; line-height: 1.55; animation: msg-in .18s var(--ease-out) both; }
@keyframes msg-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.msg-assistant {
  align-self: flex-start;
  background: var(--paper); color: var(--ink);
  padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-sm);
}
.msg-user {
  align-self: flex-end;
  background: var(--black); color: var(--linen);
  padding: 12px 16px; border-radius: 18px 18px 4px 18px;
}
.msg-context {
  align-self: center;
  font-family: var(--font-data); font-size: 9.5px; letter-spacing: .1em;
  color: var(--muted); padding: 2px 0;
}
.msg-typing {
  align-self: flex-start;
  background: var(--paper); padding: 14px 18px;
  border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow-sm);
  display: flex; gap: 5px;
}
.msg-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--stone-2);
  animation: typing 1.1s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: .18s; }
.msg-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { opacity:.25;transform:translateY(0); } 30% { opacity:1;transform:translateY(-3px); } }

/* Product cards in chat */
.product-scroller {
  display: flex; gap: 10px; overflow-x: auto; align-self: stretch;
  padding: 2px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.product-scroller::-webkit-scrollbar { display: none; }
.product-card {
  flex: 0 0 140px; background: var(--paper); border: 1px solid var(--stone);
  text-decoration: none; color: var(--ink);
  transition: transform var(--dur), box-shadow var(--dur);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card img { width: 100%; height: 176px; object-fit: cover; background: var(--stone); }
.product-card .pc-body { padding: 9px 10px 12px; }
.product-card .pc-title { font-size: 11.5px; line-height: 1.3; margin-bottom: 5px; }
.product-card .pc-price { font-family: var(--font-data); font-size: 12px; color: var(--gold); }

/* Chat input bar */
.chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stone);
  background: rgba(250,248,245,.96); backdrop-filter: blur(8px);
}
#chat-input {
  flex: 1; border: 1.5px solid var(--stone); background: var(--paper);
  padding: 12px 18px; font-size: 14px; font-family: var(--font-body);
  color: var(--ink); border-radius: 28px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
#chat-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,152,74,.12); }
.btn-send {
  width: 42px; height: 42px; border-radius: 50%; background: var(--black);
  color: var(--linen); border: none; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), transform var(--dur);
}
.btn-send:hover { background: var(--gold); transform: scale(1.08); }

/* Payment button */
.pago-wrap {
  align-self: flex-start; background: var(--paper);
  border: 1px solid var(--stone); padding: 18px 20px;
  border-radius: 18px 18px 18px 4px; max-width: 92%;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.pago-hint { font-size: 14px; }
.btn-pago {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--black); color: var(--linen);
  padding: 13px 22px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background var(--dur), transform var(--dur);
}
.btn-pago:hover { background: var(--gold); transform: translateY(-1px); }
.pago-seguro { font-family: var(--font-data); font-size: 9.5px; color: var(--muted); letter-spacing: .08em; }

/* ============================================================
   FLOATING CHAT WIDGET
   ============================================================ */
.chat-fab {
  position: fixed; bottom: 24px; right: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--black); color: var(--linen); border: none;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--dur), box-shadow var(--dur), background var(--dur);
}
.chat-fab:hover { transform: scale(1.06) translateY(-2px); background: var(--gold); box-shadow: var(--shadow-xl); }

.chat-fab-pulse::before {
  content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: var(--gold); opacity: 0;
  animation: fab-pulse 2s ease-out infinite;
}
@keyframes fab-pulse { 0% { transform:scale(1);opacity:.4; } 70%,100% { transform:scale(1.8);opacity:0; } }

.chat-fab-badge {
  position: absolute; top: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #EF4444; border: 2px solid var(--linen);
  font-family: var(--font-data); font-size: 9px; color: white;
  display: none; align-items: center; justify-content: center;
}
.chat-fab-badge.visible { display: flex; }
.chat-fab-label { font-family: var(--font-display); font-style: italic; font-size: 22px; }

/* Widget panel */
.chat-widget-panel {
  position: fixed; bottom: 96px; right: 22px; z-index: 149;
  width: min(390px, calc(100vw - 28px));
  height: min(580px, calc(100dvh - 120px));
  background: var(--linen);
  border: 1px solid var(--stone);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s;
}
.chat-widget-panel.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  .chat-widget-panel { inset: 0; width: 100%; height: 100%; bottom: auto; right: auto; border: none; }
  .chat-fab { bottom: 18px; right: 16px; }
}

.chat-widget-header {
  padding: 14px 18px; border-bottom: 1px solid var(--stone);
  background: var(--black); color: var(--linen);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.widget-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative;
}
.widget-avatar::after {
  content: ''; position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22C55E; border: 1.5px solid var(--black);
}
.widget-avatar span { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--paper); }
.widget-info { flex: 1; }
.widget-name  { font-size: 14px; font-weight: 600; color: var(--linen); }
.widget-status{ font-family: var(--font-data); font-size: 9.5px; color: var(--gold); letter-spacing: .1em; }
.widget-close {
  background: none; border: none; color: rgba(250,248,245,.4);
  font-size: 22px; line-height: 1; padding: 4px; cursor: pointer;
  transition: color var(--dur);
}
.widget-close:hover { color: var(--linen); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black); color: rgba(250,248,245,.4);
  padding: 40px 0 24px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-bottom: 36px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer-brand-name {
  font-family: var(--font-display); font-style: italic;
  font-size: 32px; color: var(--linen); margin-bottom: 10px;
}
.footer-brand-desc { font-size: 13px; line-height: 1.65; max-width: 280px; }
.footer-col-title { font-family: var(--font-data); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13.5px; color: rgba(250,248,245,.4); transition: color var(--dur); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px 0;
  border-top: 1px solid rgba(250,248,245,.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-legal { font-family: var(--font-data); font-size: 10px; letter-spacing: .08em; }

/* Páginas legales — sección de infraestructura legal del sitio */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 100px; }
.legal-titulo { font-family: var(--font-display); font-style: italic; font-size: clamp(28px,4vw,40px); margin-bottom: 8px; }
.legal-subtitulo { color: var(--muted); font-size: 13.5px; margin-bottom: 36px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--stone); }
.legal-nav a { font-size: 12px; padding: 7px 14px; border: 1px solid var(--stone-2); border-radius: 999px; color: var(--ink); text-decoration: none; }
.legal-nav a:hover, .legal-nav a.activo { background: var(--black); border-color: var(--black); color: var(--linen); }
.legal-content h2 { font-family: var(--font-display); font-size: 20px; margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14.5px; line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content li { font-size: 14.5px; line-height: 1.7; margin-bottom: 6px; }
.legal-content strong { font-weight: 600; }
.legal-content a { color: var(--gold-2); }
.legal-content .legal-dato { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.legal-content .legal-caja { background: var(--stone); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }

/* Banner de consentimiento de cookies */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: var(--black); color: var(--linen);
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 -8px 30px rgba(13,13,13,.25);
}
.cookie-banner-texto p { font-size: 12.5px; line-height: 1.5; margin: 0; max-width: 640px; color: rgba(250,248,245,.85); }
.cookie-banner-texto a { color: var(--gold); }
/* Botones a la IZQUIERDA (26-sep-2026): el botón flotante del chat vive fijo
   abajo a la derecha (.chat-fab, bottom:24px;right:22px). Si "Aceptar" /
   "Rechazar" también caen a la derecha, los dos controles quedan en la misma
   esquina y se pueden superponer / estorbarse al hacer clic. Se invierte el
   orden visual (el texto queda a la derecha) sin tocar el HTML ni el orden
   real del DOM, así un lector de pantalla lo sigue leyendo en el mismo orden
   de siempre (texto → botones). */
.cookie-banner-botones { display: flex; gap: 10px; flex-shrink: 0; order: -1; }
.cookie-banner-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--linen);
}
.cookie-banner-rechazar { background: none; color: var(--linen); }
.cookie-banner-aceptar { background: var(--linen); color: var(--black); }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-banner-botones { justify-content: stretch; } .cookie-banner-btn { flex: 1; } }

/* ── Aviso informativo de cookies (27-sep-2026) ─────────────────────
   La versión que ve el 98% del tráfico: no pide decidir nada, solo
   informa. Más bajo que el banner de dos botones, porque estorba menos
   y porque no hay que leerlo con atención. La X va a la IZQUIERDA, por
   lo mismo que los botones: el chat de Sofía ocupa la esquina derecha. */
/* No es una barra de lado a lado, es una tarjeta abajo a la IZQUIERDA.
   Una barra completa tapaba el botón del chat de Sofía (fijo abajo a la
   derecha) — que es exactamente el problema que se quería evitar al
   mover los controles a la izquierda. Así los dos conviven. */
.cookie-banner--aviso {
  left: 16px; right: auto; bottom: 16px; max-width: 460px;
  gap: 13px; padding: 13px 16px; justify-content: flex-start; align-items: center;
  border: 1px solid rgba(250,248,245,.18);
  box-shadow: 0 10px 34px rgba(13,13,13,.28);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cookie-banner--aviso .cookie-banner-texto { min-width: 0; flex: 1; }
.cookie-banner--aviso .cookie-banner-texto p { max-width: none; }
.cookie-banner--aviso .cookie-banner-texto p { font-size: 12px; }
.cookie-banner--fuera { transform: translateY(110%); opacity: 0; }
.cookie-banner-cerrar {
  order: -1; flex-shrink: 0; width: 30px; height: 30px;
  display: grid; place-items: center; padding: 0;
  background: none; border: 1px solid rgba(250,248,245,.35); border-radius: 50%;
  color: var(--linen); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cookie-banner-cerrar svg { width: 14px; height: 14px; }
.cookie-banner-cerrar:hover { background: rgba(250,248,245,.14); border-color: var(--linen); }
@media (max-width: 600px) {
  /* En móvil no se apila: la X y el texto caben en un renglón y así el
     aviso ocupa la mitad de alto. */
  /* !important porque la regla general de arriba pone el banner en
     columna para el de dos botones, y aquí la X y el texto sí caben en
     un solo renglón: apilarlos duplicaba el alto del aviso. */
  /* !important porque la regla general de arriba pone el banner en
     columna para el de dos botones, y aquí la X y el texto sí caben en
     un solo renglón: apilarlos duplicaba el alto del aviso. */
  /* 8-oct-2026 (mejora aprobada "Aviso de cookies más pequeño"): en vez
     de la tarjeta flotante con esquinas y 11-13px de relleno (que en un
     teléfono chico tapaba una parte real de la primera pantalla), aquí
     se vuelve una franja delgada pegada al borde inferior — una sola
     línea de texto truncada con "…" si no cabe, sin dejar de poder
     leerse completa (title="" la repite). BUG corregido de paso: esta
     regla decía ".chat-fab", una clase que ya no existe en ningún HTML
     del sitio (el botón real es "#lmw-fab" / ".lmw-fab") — la corrección
     de "no tapar el botón del chat" nunca se había aplicado en la
     práctica. */
  .cookie-banner--aviso {
    flex-direction: row !important; align-items: center !important;
    left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px));
    gap: 9px;
  }
  .cookie-banner--aviso .cookie-banner-texto p {
    font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cookie-banner--aviso .cookie-banner-cerrar { width: 24px; height: 24px; }
  .cookie-banner--aviso .cookie-banner-cerrar svg { width: 11px; height: 11px; }
  /* En móvil el aviso sí ocupa el ancho, así que el botón del chat se
     sube mientras esté visible. La clase la pone y la quita el JS del
     aviso. */
  body.con-aviso-cookies .lmw-fab { bottom: 54px; }
  body.con-aviso-cookies .lmw-nudge { bottom: 116px; }
  /* Se sube encima de la barra fija de compra de producto.php (ver
     cookie_banner.php) — su alto real en móvil ronda los 64px. */
  .cookie-banner--sobre-sticky { bottom: 64px; }
}
.footer-trm { font-family: var(--font-data); font-size: 10px; color: rgba(250,248,245,.25); }

/* ============================================================
   ANIMATIONS — Scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ================================================================
   POPUP BIENVENIDA / COOKIE CONSENT
   ================================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20, 18, 14, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: popupFadeIn .35s ease;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-box {
  background: #F4F1E8;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  animation: popupSlideUp .38s cubic-bezier(.22,.68,0,1.2);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.popup-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.popup-brand-l {
  width: 28px; height: 28px;
  background: #14213d;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 600;
}
.popup-brand-text {
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 600;
  letter-spacing: .18em;
  color: #14213d;
}

.popup-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.popup-online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 10px; height: 10px;
  background: #22c55e;
  border: 2px solid #F4F1E8;
  border-radius: 50%;
}

.popup-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 500;
  font-style: italic;
  color: #14213d;
  margin-bottom: 8px;
}
.popup-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.popup-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popup-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.popup-terms-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px; height: 15px;
  cursor: pointer;
  accent-color: #14213d;
}
.popup-link {
  color: #14213d;
  text-decoration: underline;
}
.popup-error {
  font-size: 12px;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}

.popup-footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: .02em;
}

.popup-cookies-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.popup-cookies-info p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.popup-skip-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.popup-skip-btn:hover { color: #14213d; }

@media (max-width: 480px) {
  .popup-box {
    padding: 28px 20px 22px;
    border-radius: 16px;
  }
}

/* ================================================================
   CHAT HERO — REDISEÑO INTERACTIVO
   ================================================================ */

/* Cabecera del chat */
.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e8e4da);
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(8px);
}
.chat-header-avatar {
  width: 38px; height: 38px;
  background: #14213d;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 16px; color: #F4F1E8; font-weight: 500;
  flex-shrink: 0;
  position: relative;
}
.chat-header-avatar::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: #22c55e;
  border: 2px solid #F4F1E8;
  border-radius: 50%;
}
.chat-header-name {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 15px; font-weight: 600; color: #14213d;
  line-height: 1.2;
}
.chat-header-status {
  font-size: 11px; color: #888;
  display: flex; align-items: center; gap: 5px;
}
.chat-online-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Bienvenida card */
.chat-welcome-card {
  background: linear-gradient(135deg, #14213d 0%, #1e2f52 100%);
  color: #fff;
  border-radius: 14px;
  padding: 20px 18px;
  margin: 16px 14px 6px;
  animation: welcomeSlide .5s ease;
}
@keyframes welcomeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-welcome-hi {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 500;
  margin-bottom: 8px;
}
.chat-welcome-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}

/* Chips de acción rápida */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 14px 10px;
  transition: opacity .25s, transform .25s;
}
.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid #e8e4da;
  border-radius: 24px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #14213d;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.chat-chip:hover {
  background: #14213d;
  color: #fff;
  border-color: #14213d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20,33,61,.2);
}
.chat-chip:active {
  transform: scale(.97);
}
.chat-chip:disabled {
  opacity: .5;
  pointer-events: none;
}
.chat-chip-icon {
  font-size: 14px;
}

/* Ajustar hero-chat para que muestre todo */
.hero-chat {
  display: flex;
  flex-direction: column;
}
.hero-chat .chat-thread {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 0;
}
.hero-chat .chat-input-bar {
  border-top: 1px solid var(--border, #e8e4da);
  padding: 10px 14px;
  background: rgba(250,248,245,.95);
}

/* ================================================================
   PRODUCT CARDS EN CHAT — mejoradas
   ================================================================ */
.product-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 14px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-scroller::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.pc-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pc-title {
  font-size: 12px;
  font-weight: 600;
  color: #14213d;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-price {
  font-size: 13px;
  font-weight: 700;
  color: #14213d;
}
.pc-color {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}
.pc-btn {
  margin-top: 8px;
  padding: 7px 0;
  background: #14213d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s;
}
.pc-btn:hover { background: #1e2f52; }
.pc-btn:disabled { opacity: .5; }

/* ================================================================
   PAGO CARD — mejorada
   ================================================================ */
.pago-wrap {
  background: linear-gradient(135deg, #14213d 0%, #1e2f52 100%);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 10px 14px;
  text-align: center;
  animation: pagoSlide .4s ease;
}
@keyframes pagoSlide {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.pago-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.pago-hint {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 18px; font-style: italic;
  color: #fff; margin-bottom: 16px;
}
.btn-pago {
  display: inline-block;
  padding: 14px 40px;
  background: #c9a227;
  color: #14213d;
  border-radius: 10px;
  font-size: 14px; font-weight: 800;
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(201,162,39,.35);
}
.btn-pago:hover { background: #d4ad32; transform: scale(1.02); }
.pago-trust {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 10px;
  color: rgba(255,255,255,.55);
}
.pago-seguro { display: none; }

/* Barra superior con la promoción general (8-oct-2026) */
.promo-ticker { color: var(--gold, #6F745F); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.promo-ticker u { color: rgba(250,248,245,.75); font-weight: 400; }
.promo-ticker:hover u { color: #fff; }
