
/* ==========================================================================
   Lulú Lulú — Camas para perros y gatos
   Hoja de estilos generada a partir del análisis de index.html.

   Paleta: violeta cálido (marca) + terracota/damasco (acento) + ivory
   (fondo) + verde WhatsApp (acción de contacto). Tipografía Fraunces
   (títulos, con calidez editorial) + DM Sans (texto, muy legible).

   Índice:
   1. Tokens (colores, tipografía, espaciado, sombras)
   2. Reset y base
   3. Utilidades (wrap, sr-only, animaciones)
   4. Header y navegación
   5. Botones y campos de formulario
   6. Hero
   7. Franja de confianza
   8. Producto estrella
   9. Catálogo (modo, filtros, grilla)
   10. Nosotros / Historia
   11. Cómo comprar
   12. Mayorista
   13. Guía de tamaños
   14. Preguntas frecuentes
   15. CTA final
   16. Footer
   17. Botón flotante de WhatsApp
   18. Modal de producto
   19. Visor con zoom (lightbox)
   20. Carrito (drawer)
   21. Toast
   22. Responsive fino
   23. Promociones y precios promocionales
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root{
  /* Violeta — color de marca */
  --purple-50:  #f8f4fc;
  --purple-100: #efe3fa;
  --purple-200: #ddc7f2;
  --purple-300: #c19ee6;
  --purple-400: #9c68d8;
  --purple-500: #7c46bf; /* brand / theme-color */
  --purple-600: #6a3aa8;
  --purple-700: #55308a;
  --purple-800: #3d2264;
  --purple-900: #241539;

  /* Terracota — acento cálido */
  --terracotta-100: #fbe7d6;
  --terracotta-300: #f0ab7c;
  --terracotta-400: #ec9f6b;
  --terracotta-500: #e8935a;
  --terracotta-600: #d97a3f;
  --terracotta-700: #b45e2c;

  /* WhatsApp */
  --wa-500: #25d366;
  --wa-600: #1fb956;
  --wa-700: #189246;

  /* Neutros cálidos (tinte violeta) */
  --ink-900: #241d2b;
  --ink-700: #453b4f;
  --ink-500: #766c82;
  --ink-300: #ada2b8;
  --ink-200: #d6cee0;

  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-tint: #f6effa;
  --surface-dim: #f1e9f8;
  --border: #e7dced;
  --border-soft: #f0e8f5;

  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, .78);
  --on-dark-faint: rgba(255, 255, 255, .55);

  --gradient-royal: linear-gradient(150deg, #3d2264 0%, #5f359e 48%, #8752c9 100%);
  --gradient-warm: linear-gradient(120deg, var(--terracotta-500), var(--purple-500));

  /* Tipografía */
  --font-display: "Plus Jakarta Sans";
  --font-body: "Nunito Sans";

  /* Radios */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(36, 21, 57, .06);
  --shadow-md: 0 14px 34px rgba(36, 21, 57, .10);
  --shadow-lg: 0 26px 60px rgba(36, 21, 57, .18);
  --shadow-purple: 0 16px 32px rgba(124, 70, 191, .30);
  --shadow-terracotta: 0 14px 28px rgba(217, 122, 63, .30);

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body, h1, h2, h3, p, ul, ol, dl, dd, figure{ margin: 0; }
ul[class], ol[class]{ list-style: none; padding: 0; }

img, video{ display: block; max-width: 100%; height: auto; }
svg{ display: block; }

button, input, select, textarea{
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
button{ cursor: pointer; }
button:disabled{ cursor: not-allowed; opacity: .55; }

a{ color: inherit; text-decoration: none; }

table{ border-collapse: collapse; width: 100%; }

/* [hidden] siempre gana, incluso sobre display:flex/grid propios */
[hidden]{ display: none !important; }

:focus-visible{
  outline: 2.5px solid var(--purple-500);
  outline-offset: 3px;
  border-radius: 4px;
}

body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Con un dialog abierto (modal de producto, zoom, carrito), bloquea el
   scroll de la página de atrás para que el gesto de scroll quede
   siempre adentro del modal. */
body.no-scroll{
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.12;
  font-weight: 600;
  text-wrap: balance;
}
em{
  font-style: italic;
  color: var(--purple-600);
}
.section--dark em,
.star em, .story em, .wholesale em{ color: var(--terracotta-300); }

p{ text-wrap: pretty; }

.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;
}

.skip-link{
  position: fixed;
  top: -60px; left: 12px;
  z-index: 200;
  background: var(--purple-700);
  color: #fff;
  padding: .8em 1.2em;
  border-radius: var(--r-sm);
  transition: top .25s var(--ease);
}
.skip-link:focus{ top: 12px; }

/* ==========================================================================
   3. UTILIDADES
   ========================================================================== */
.wrap{
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow{ max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.center{ text-align: center; }

.ico{
  width: 1.15em; height: 1.15em;
  flex: none;
  stroke: currentColor;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: .9em;
}
.eyebrow__line{
  width: 28px; height: 2px;
  background: var(--terracotta-500);
  border-radius: var(--r-pill);
}
.eyebrow--light{ color: var(--terracotta-300); }
.eyebrow--light .eyebrow__line{ background: var(--terracotta-300); }

.section{ padding-block: clamp(64px, 9vw, 112px); }
.section--tight{ padding-block: clamp(48px, 7vw, 88px); }
.section--tint{ background: var(--surface-tint); }

.section__head{ max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2{ font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem); }
.section__sub{
  margin-top: .9em;
  color: var(--ink-500);
  font-size: 1.02rem;
}

.notice{
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .9em 1.1em;
  font-size: .92rem;
  color: var(--ink-700);
}
.notice--warn{ background: var(--terracotta-100); border-color: var(--terracotta-300); color: var(--terracotta-700); }
.notice--mayo{ background: var(--purple-50); border-color: var(--purple-200); color: var(--purple-700); }

.hint{ font-size: .85rem; color: var(--ink-500); }
.hint--box{
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: var(--r-sm);
  padding: .7em .9em;
}

/* Animaciones de entrada. No dependen de que exista js/app.js: se
   reproducen solas al cargar. Si más adelante un IntersectionObserver
   agrega .is-visible para reforzar el efecto al hacer scroll, no hay
   conflicto (el elemento ya está visible). */
@media (prefers-reduced-motion: no-preference){
  .js .reveal{
    opacity: 0;
    transform: translateY(26px);
    animation: revealIn .7s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
  }
  .js .reveal.is-visible{ animation: none; opacity: 1; transform: none; }
  @keyframes revealIn{
    from{ opacity: 0; transform: translateY(26px); }
    to{ opacity: 1; transform: none; }
  }

  .js .hero__in{
    opacity: 0;
    animation: heroIn .8s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes heroIn{
    from{ opacity: 0; transform: translateY(20px); }
    to{ opacity: 1; transform: none; }
  }
}

/* ==========================================================================
   4. HEADER Y NAVEGACIÓN
   ========================================================================== */
.progress{
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  width: 0;
  background: var(--gradient-warm);
  z-index: 90;
  transition: width .12s linear;
}

.demo-bar{
  background: var(--terracotta-100);
  color: var(--terracotta-700);
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: .55em 1em;
}

.announce{
  background: var(--ink-900);
  color: var(--on-dark-soft);
  overflow: hidden;
  white-space: nowrap;
}
.announce__track{
  display: inline-flex;
  align-items: center;
  gap: 2em;
  padding-block: .55em;
  font-size: .8rem;
  letter-spacing: .04em;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.announce__track i{ color: var(--terracotta-400); font-style: normal; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .announce__track{ animation: none; overflow-x: auto; }
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(20, 10, 35, .58) 0%, rgba(20, 10, 35, .22) 75%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.site-header.is-scrolled{
  background: rgba(251, 247, 242, .82);
  backdrop-filter: none;
  border-bottom-color: var(--border-soft);
}
.header__inner{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
/* Columnas fijas por elemento: en mobile el .nav es position:fixed (sale
   del flujo) y el grid lo salteaba al ubicar automáticamente los demás
   hijos, corriendo el carrito y el menú a la columna del medio en vez
   de dejarlos pegados a la derecha. */
.brand{ grid-column: 1; }
.nav{ grid-column: 2; }
.header__actions{ grid-column: 3; }

.brand img{ height: 40px; width: auto; transition: filter .35s ease; }
.site-header:not(.is-scrolled) .brand img{ filter: brightness(0) invert(1); }

.nav{
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.nav__list{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav__group{ display:none; }

.nav__item{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-700);
  padding-block: .3em;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.nav__item .ico{ display: none; }
.nav__item::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--terracotta-500);
  border-radius: var(--r-pill);
  transition: right .25s var(--ease);
}
.nav__item:hover{ color: var(--purple-700); }
.nav__item:hover::after{ right: 0; }
@media (min-width: 900px){
  .site-header:not(.is-scrolled) .nav a{ color: rgba(255,255,255,.92); }
  .site-header:not(.is-scrolled) .nav a:hover{ color: #fff; }
}

.header__actions{ display: flex; align-items: center; gap: 10px; }

.cart-btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em .9em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--ink-900);
  font-weight: 600;
  font-size: .9rem;
  position: relative;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.cart-btn:hover{ border-color: var(--purple-400); background: var(--purple-50); transform: translateY(-1px); }
.site-header:not(.is-scrolled) .cart-btn{ color: #fff; border-color: rgba(255,255,255,.5); }
.site-header:not(.is-scrolled) .cart-btn:hover{ background: rgba(255,255,255,.14); border-color: #fff; }
.cart-btn__label{ display: none; }
.cart-count{
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 4px;
  background: var(--terracotta-500);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border-radius: var(--r-pill);
}
.cart-count:empty, .cart-count[data-zero]{ opacity: .5; }

/* Solo tiene función en mobile (abre el menú de navegación en drawer);
   en desktop el menú ya está visible en el header, así que se oculta. */
.menu-btn{
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
@media (max-width: 899px){
  .menu-btn{
    display: inline-flex;
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    flex: 0 0 42px;
  }
  .site-header{
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header__inner{
    min-height: var(--header-h);
  }
}
.menu-btn .ico{ width: 20px; height: 20px; }
.site-header:not(.is-scrolled) .menu-btn{ color: #fff; border-color: rgba(255,255,255,.5); }

.icon-btn{
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-900);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover{ background: var(--purple-600); color: #fff; transform: scale(1.05); }

@media (max-width: 899px){
  .nav{
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 12px;
    left: auto;
    width: min(92vw, 380px);
    height: auto;
    max-height: calc(100dvh - var(--header-h) - 20px);
    background: linear-gradient(139deg, #fff 0%, var(--purple-50) 50%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 12px 18px;
    box-shadow: 0 14px 34px rgba(36,21,57,.14);
    transform: translateX(calc(100% + 24px));
    transition: transform .28s var(--ease), opacity .2s ease;
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }


  .nav__list{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0;
  }
  .nav__item{
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--ink-900);
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
  }
  .nav__group{
    display: block;
    width: 100%;
  }
  .nav__group > summary{
    list-style: none;
    cursor: pointer;
  }
  .nav__group > summary::-webkit-details-marker{ display:none; }
  .nav__item--group{
    display: flex;
    align-items: center;
  }
  .nav__item--group > span:first-of-type{
    flex: 1;
  }
  .nav__chevron{
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--purple-500);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform .2s ease, background .2s ease, color .2s ease;
  }
  .nav__group[open] .nav__chevron{
    transform: rotate(45deg);
    background: var(--purple-600);
    color: #fff;
  }
  .nav__submenu{
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 10px 5px 39px;
    padding: 5px 0 5px 10px;
    border-left: 2px solid var(--purple-200);
  }
  .nav__submenu a{
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink-700);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color .2s ease, color .2s ease;
  }
  .nav__submenu a:hover,
  .nav__submenu a:focus-visible{
    background: var(--purple-100);
    color: var(--purple-700);
  }
  .nav__item .ico{
    display: block;
    width: 19px;
    height: 19px;
    color: var(--purple-500);
    transition: color .28s var(--ease), transform .28s var(--ease);
  }
  .nav__item::after{ display: none; }
  .nav__item:hover,
  .nav__item:focus-visible{
    background: var(--purple-600);
    color: #fff;
    transform: translate(1px, -1px);
  }
  .nav__item:hover .ico,
  .nav__item:focus-visible .ico{ color: #fff; }
  .nav__item:active{ transform: scale(.99); }
  .nav__item:nth-child(4){
    margin-top: 4px;
    padding-top: 13px;
    border-top: 1.5px solid var(--border);
    border-radius: 0;
  }
  .nav__item:nth-child(5){
    margin-top: 4px;
  }
  .nav__item:nth-child(6){
    color: var(--purple-500);
  }
  .nav__item:nth-child(6) .ico{ color: var(--purple-400); }
  .nav__item:nth-child(6):hover,
  .nav__item:nth-child(6):focus-visible{
    background: var(--ink-900);
    color: #fff;
  }
  .nav__item:nth-child(6):hover .ico,
  .nav__item:nth-child(6):focus-visible .ico{ color: #fff; }
  .site-header.menu-open .nav{
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav{
    visibility: hidden;
    pointer-events: none;
  }
}


@media (min-width: 640px){
  .cart-btn__label{ display: inline; }
}

/* ==========================================================================
   5. BOTONES Y CAMPOS
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.5em;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out, opacity .2s ease;
}

.btn:active{
  transform: translateY(3px);
  opacity: .72;
}

.btn--lg{
  padding: 1em 1.9em;
  font-size: 1rem;
}

.btn--block{ width: 100%; }
.btn--grow{ flex: 1; }

.btn--text{
  padding: .4em .2em;
  color: var(--ink-500);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}
.btn--text:hover{
  color: var(--purple-700);
  transform: none;
}

/* Botones principales: mismo efecto en toda la tienda, adaptado a Lulú. */
.btn--primary,
.btn--light,
.btn--outline-light,
.btn--wa,
.btn--purchase{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background-image: linear-gradient(135deg, var(--purple-600) 0%, var(--terracotta-500) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(124,70,191,.28);
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out, opacity .2s ease;
}

.btn--primary:hover,
.btn--light:hover,
.btn--outline-light:hover,
.btn--wa:hover,
.btn--purchase:hover{
  color: #fff;
  transform: translateY(3px);
  box-shadow: none;
}

.btn--primary:focus-visible,
.btn--light:focus-visible,
.btn--outline-light:focus-visible,
.btn--wa:focus-visible,
.btn--purchase:focus-visible{
  outline: 2px solid var(--purple-400);
  outline-offset: 3px;
}

.btn--primary:active,
.btn--light:active,
.btn--outline-light:active,
.btn--wa:active,
.btn--purchase:active{
  transform: translateY(3px);
  opacity: .5;
}

.btn--primary::before,
.btn--light::before,
.btn--outline-light::before,
.btn--wa::before,
.btn--purchase::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--terracotta-400) 0%, var(--terracotta-600) 100%);
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

.btn--primary:hover::before,
.btn--light:hover::before,
.btn--outline-light:hover::before,
.btn--wa:hover::before,
.btn--purchase:hover::before{
  opacity: 1;
}

.btn--outline-light{
  border-color: transparent;
}

.btn--wa .ico,
[data-wa] .ico{
  color: currentColor;
}

/* Campos de formulario */

input[type="text"], input[type="tel"], input[type="search"], textarea, select{
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .8em .95em;
  font-size: .95rem;
  color: var(--ink-900);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, textarea:focus, select:focus{
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px var(--purple-100);
  outline: none;
}
textarea{ resize: vertical; min-height: 90px; }

.field{ margin-bottom: 1.2em; }
.field label{ display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45em; }
.field__error{
  color: var(--terracotta-700);
  font-size: .8rem;
  margin-top: .4em;
  font-weight: 600;
}
.field.has-error input, .field.has-error textarea{ border-color: var(--terracotta-600); box-shadow: 0 0 0 4px var(--terracotta-100); }

.opt-tag{ color: var(--ink-300); font-weight: 400; }

.select-wrap{ position: relative; }
.select-wrap select{
  appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23453b4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8em center;
  background-size: 18px;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero{
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  top: -220px; right: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--purple-100), transparent 70%);
  z-index: -1;
}

/* Hero con video de fondo (home): el texto queda "arriba" del video,
   con un degradé oscuro a la izquierda para que siempre se lea bien. */
.hero--video{
  margin-top: calc(-1 * var(--header-h));
  padding-block: clamp(96px, 16vw, 168px) clamp(64px, 9vw, 110px);
  min-height: clamp(480px, 82vh, 760px);
  display: flex;
  align-items: center;
}
.hero--video::before{ content: none; }
.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__scrim{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(28, 16, 46, .86) 0%, rgba(28, 16, 46, .62) 40%, rgba(28, 16, 46, .28) 68%, rgba(28, 16, 46, .08) 100%);
}
.hero--video .wrap{ position: relative; padding-inline-start: clamp(14px, 2.4vw, 28px); }
.hero--video 
.hero__modelos{
  display: flex;
  align-items: center;
  min-height: 1.5em;
}
.hero__copy{ max-width: 620px; }
.hero--video h1{ color: #fff; }
.hero--video em{ color: var(--terracotta-300); }
.hero--video .hero__points li{ color: var(--on-dark-soft); }
.hero--video .hero__points span{ background: rgba(255,255,255,.16); color: #fff; }

.hero__grid{
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero__copy h1{
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  margin-bottom: .38em;
}
.hero .lead{
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: var(--ink-500);
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero--video .lead{ color: var(--on-dark-soft); }
.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.2em;
}

.hero__points{
  display: flex;
  flex-direction: column;
  gap: .7em;
}
.hero__points li{
  display: flex;
  align-items: center;
  gap: .8em;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-700);
}
.hero__points span{
  flex: none;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-family: var(--font-display);
  font-size: .82rem;
}

@media (max-width: 600px){
  .hero__copy{ max-width: 100%; }
  .hero__points{ gap: .55em; margin-top: .2em; }
  .hero__points li{ font-size: .82rem; gap: .65em; }
  .hero__points span{ width: 24px; height: 24px; font-size: .76rem; }
}

.hero__visual{ position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero__arch{
  border-radius: 220px 220px var(--r-xl) var(--r-xl);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
  aspect-ratio: 1100 / 1361;
  background: var(--purple-100);
}
.hero__arch img{ width: 100%; height: 100%; object-fit: cover; }

.hero__tag{
  position: absolute;
  right: -10px; top: 10%;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-pill);
  padding: .6em 1.1em .6em .8em;
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.hero__tag .ico{ color: var(--terracotta-400); }

@media (min-width: 900px){
  .hero__grid{ grid-template-columns: 1.05fr .95fr; }
  .hero__visual{ justify-self: end; }
}

/* ==========================================================================
   7. FRANJA DE CONFIANZA
   ========================================================================== */
.trust{
  background: var(--surface);
  border-block: 1px solid var(--border-soft);
  padding-block: clamp(28px, 4vw, 40px);
}
.trust__grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.trust__item{
  display: flex;
  align-items: center;
  gap: .9em;
}
.trust__item .ico{
  flex: none;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-600);
}
.trust__item b{ display: block; font-size: .92rem; }
.trust__item span{ display: block; font-size: .8rem; color: var(--ink-500); }

@media (min-width: 720px){
  .trust__grid{ grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   8. PRODUCTO ESTRELLA
   ========================================================================== */
.star{
  background: var(--gradient-royal);
  color: var(--on-dark-soft);
  padding-block: clamp(64px, 9vw, 112px);
  position: relative;
  overflow: hidden;
}
.star::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(232,147,90,.25), transparent 55%);
  pointer-events: none;
}
.star h2{ color: #fff; font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); margin-bottom: .5em; }
.star p{ color: var(--on-dark-soft); font-size: .92rem; }

.star__grid{
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
  position: relative;
}

.star__media{ position: relative; }
.star__frame{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
}
.star__ribbon{
  position: absolute;
  top: 18px; left: -8px;
  background: var(--terracotta-500);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  padding: .55em 1.1em .55em 1.4em;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  box-shadow: var(--shadow-terracotta);
}
.star__price-card{
  position: absolute;
  right: -14px; bottom: -18px;
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--r-md);
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
  padding: .9em 1.2em;
  display: flex; flex-direction: column;
}
.star__price-card small{ font-size: .72rem; color: var(--ink-500); font-weight: 600; }
.star__price-card b{ font-family: var(--font-display); font-size: 1.5rem; color: var(--terracotta-600); }
.star__price-card s{ font-size: .8rem; color: var(--ink-300); }

.star__facts{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 1.4em;
}
.star__facts li{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: .7em 1em;
  min-width: 140px;
}
.star__facts b{ display: block; font-size: .88rem; color: #fff; }
.star__facts span{ font-size: .7rem; color: var(--on-dark-faint); }

.star__offer{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md);
  padding: 1.2em 1.3em;
  margin-block: 1.4em;
}
.star__nums{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6em;
  margin-bottom: .5em;
}
.star__nums s{ color: var(--on-dark-faint); font-size: .92rem; }
.star__nums b{ font-family: var(--font-display); font-size: 1.9rem; color: #fff; }
.star__chip{
  background: var(--terracotta-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .4em .8em;
  border-radius: var(--r-pill);
}
.star__cta{ display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 900px){
  .star__grid{ grid-template-columns: 1.15fr 1fr; }
}

/* ==========================================================================
   9. CATÁLOGO
   ========================================================================== */
.catalog__foot{
  margin-top: 2em;
  font-size: .8rem;
  color: var(--ink-300);
  max-width: 60ch;
}

.mode{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.mode__switch{
  --mode-item-width: 108px;
  --mode-item-height: 42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px rgba(36,21,57,.10);
  isolation: isolate;
}

.mode__switch > *{
  z-index: 2;
}

.mode__radio{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode__btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mode-item-width);
  height: var(--mode-item-height);
  padding: 0 .75em;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-500);
  cursor: pointer;
  user-select: none;
  transition: color .2s var(--ease);
}

.mode__radio:checked + .mode__btn{
  color: #fff;
}

.mode__glider{
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  width: var(--mode-item-width);
  height: var(--mode-item-height);
  border-radius: var(--r-pill);
  background: var(--purple-600);
  box-shadow: var(--shadow-purple);
  transition: transform .25s var(--ease);
  pointer-events: none;
}

#mode-mayorista:checked ~ .mode__glider{
  transform: translateX(var(--mode-item-width));
}

.mode__btn:hover{
  color: var(--purple-700);
}

.mode__radio:checked + .mode__btn:hover{
  color: #fff;
}

.mode__note{
  display: flex; align-items: center; gap: .5em;
  font-size: .84rem;
  color: var(--purple-700);
}
.mode__note .ico{ color: var(--terracotta-500); }

@media (max-width: 700px){
  .mode{
    align-items: flex-start;
  }

  .mode__switch{
    --mode-item-width: 98px;
    --mode-item-height: 40px;
  }

  .mode__note{
    width: 100%;
  }
}

/* Selector de colores del producto — tarjetas tipo radio */
#pColors{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  user-select: none;
}

.color-radio{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  white-space: nowrap;
}

.color-tile{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 78px;
  min-height: 76px;
  padding: 10px 7px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-500);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    border-color .2s var(--ease),
    box-shadow .2s var(--ease),
    transform .2s var(--ease),
    color .2s var(--ease);
}

.color-tile::before{
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  transform: scale(0);
  opacity: 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.color-tile__swatch{
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid rgba(36,21,57,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.color-tile__label{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

.color-tile:hover{
  border-color: var(--purple-400);
  color: var(--purple-700);
  transform: translateY(-1px);
}

.color-radio:checked + .color-tile{
  border-color: var(--purple-600);
  color: var(--purple-700);
  box-shadow: var(--shadow-purple);
}

.color-radio:checked + .color-tile::before{
  transform: scale(1);
  opacity: 1;
  background: var(--purple-600);
  border-color: var(--purple-600);
}

.color-radio:focus-visible + .color-tile{
  border-color: var(--purple-600);
  box-shadow: var(--shadow-purple), 0 0 0 4px var(--purple-50);
}

@media (max-width: 520px){
  #pColors{
    gap: 8px;
  }

  .color-tile{
    width: 70px;
    min-height: 72px;
    padding-inline: 5px;
  }
}

.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-end;
  padding-block: 20px;
  border-block: 1px solid var(--border-soft);
  margin-bottom: 26px;
}
.filter-group{ display: flex; flex-direction: column; gap: .55em; }
.filter-label{
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.filter-group--sort{ margin-inline-start: auto; min-width: 220px; }

.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chips button{
  padding: .5em 1.05em;
  border-radius: var(--r-pill);
  border: 1.4px solid var(--border);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all .2s var(--ease);
}
.chips button:hover{ border-color: var(--purple-400); color: var(--purple-700); }
.chips button[aria-pressed="true"]{
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: #fff;
}

.results{
  font-size: .85rem;
  color: var(--ink-500);
  margin-bottom: 18px;
}

.grid{
  display: grid;
  gap: clamp(16px, 2.5vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid > *{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
  text-align: left;
}
.grid > *:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.grid img{ aspect-ratio: 4/3.4; object-fit: cover; width: 100%; background: var(--surface-tint); }
.grid .card__body, .grid > * > div:last-child{ padding: 1em 1.1em 1.2em; }

.card__cat{
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: .35em;
}
.card__title{ font-size: 1.05rem; margin-bottom: .4em; }
.card__price{ font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-900); display: flex; align-items: baseline; gap: .45em; flex-wrap: wrap; }
.card__price s{ font-family: var(--font-body); font-size: .82rem; color: var(--ink-300); }
.card__price-note{ font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--ink-300); }

.size-table tbody tr.is-selected td{ background: var(--purple-50); }

.badge{
  display: inline-flex; align-items: center;
  background: var(--terracotta-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .35em .75em;
  border-radius: var(--r-pill);
}
.badge--float{ position: absolute; top: 12px; left: 12px; }

/* ==========================================================================
   10. NOSOTROS / HISTORIA
   ========================================================================== */
.story{
  background: var(--gradient-royal);
  color: var(--on-dark-soft);
  padding-block: clamp(64px, 9vw, 112px);
}
.story h2{ color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.7rem); margin-bottom: .55em; }
.story__grid{
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.story__media{
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
  aspect-ratio: 4/3;
}
.story__media video, .story__media img{ width: 100%; height: 100%; object-fit: cover; }
.story__stats{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  margin-block: 1.6em;
}
.story__stats b{ font-family: var(--font-display); font-size: 2rem; color: #fff; display: block; }
.story__stats span{ font-size: .78rem; color: var(--on-dark-faint); }

@media (min-width: 900px){
  .story__grid{ grid-template-columns: .95fr 1.05fr; }
}

/* ==========================================================================
   11. CÓMO COMPRAR
   ========================================================================== */
.steps{
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
.step{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.8em 1.6em;
  box-shadow: var(--shadow-sm);
}
.step__n{
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--purple-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: .8em;
}
.step h3{ font-size: 1.1rem; margin-bottom: .4em; }
.step p{ color: var(--ink-500); font-size: .92rem; }

@media (min-width: 720px){
  .steps{ grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   12. MAYORISTA
   ========================================================================== */
.wholesale{
  background: var(--gradient-royal);
  color: var(--on-dark-soft);
  padding-block: clamp(64px, 9vw, 112px);
}
.wholesale h2{ color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: .5em; }
.wholesale__grid{
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.wholesale__perks{ display: flex; flex-direction: column; gap: .8em; margin-block: 1.4em; }
.wholesale__perks li{ display: flex; align-items: center; gap: .8em; font-size: .95rem; }
.wholesale__perks .ico{ flex: none; color: var(--terracotta-400); }
.wholesale__cta{ display: flex; flex-wrap: wrap; gap: 14px; }

.wholesale__card{
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--r-lg);
  padding: 1.8em;
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
  justify-self: center;
  width: 100%;
  max-width: 340px;
}
.wholesale__card > p{ font-size: .8rem; color: var(--ink-300); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1em; }
.wholesale__row{
  display: flex; align-items: center; justify-content: space-between;
  padding: .85em 0;
  border-top: 1px solid var(--border-soft);
  font-size: .95rem;
}
.wholesale__row s{ color: var(--ink-300); }
.wholesale__row--hi{
  background: var(--purple-50);
  border-radius: var(--r-sm);
  padding-inline: .8em;
  margin-top: .3em;
}
.wholesale__row--hi b{ color: var(--purple-700); font-family: var(--font-display); font-size: 1.25rem; }
.wholesale__card small{ display: block; margin-top: 1em; color: var(--ink-300); font-size: .78rem; }

@media (min-width: 900px){
  .wholesale__grid{ grid-template-columns: 1.1fr .9fr; }
}

/* ==========================================================================
   13. GUÍA DE TAMAÑOS
   ========================================================================== */
.size-guide__cards{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.tip{
  background: var(--surface-tint);
  border-radius: var(--r-lg);
  padding: 1.6em;
}
.tip h3{ font-size: 1.05rem; margin-bottom: .5em; color: var(--purple-700); }
.tip p{ font-size: .92rem; color: var(--ink-700); }

@media (min-width: 720px){
  .size-guide__cards{ grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   14. PREGUNTAS FRECUENTES
   ========================================================================== */
.faq{ display: flex; flex-direction: column; gap: 12px; }
.faq details{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 0 1.3em;
  transition: border-color .2s var(--ease);
}
.faq details[open]{ border-color: var(--purple-300); box-shadow: var(--shadow-sm); }
.faq summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding-block: 1.1em;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--purple-500);
  border-bottom: 2px solid var(--purple-500);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after{ transform: rotate(-135deg); }
.faq details p{
  padding-bottom: 1.2em;
  color: var(--ink-500);
  font-size: .92rem;
  max-width: 68ch;
}

/* ==========================================================================
   15. CTA FINAL
   ========================================================================== */
.cta-band{
  background: var(--gradient-warm);
  padding-block: clamp(44px, 6vw, 64px);
}
.cta-band__inner{
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.cta-band h2{ color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .3em; }
.cta-band p{ color: rgba(255,255,255,.85); }

@media (min-width: 720px){
  .cta-band__inner{ flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer{
  background: var(--ink-900);
  color: var(--on-dark-faint);
  padding-block: clamp(48px, 7vw, 76px) 0;
}
.footer__grid{
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img{ height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1em; }
.footer__brand p{ font-size: .88rem; max-width: 34ch; }
.footer__title{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1em;
}
.footer__grid nav ul, .footer__contact{ display: flex; flex-direction: column; gap: .7em; list-style: none; padding: 0; }
.footer__grid a{ font-size: .9rem; transition: color .2s var(--ease); }
.footer__grid a:hover{ color: #fff; }
.footer__contact a{ display: inline-flex; align-items: center; gap: .6em; }
.footer__contact .ico{ color: var(--wa-500); }

.footer__legal{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 22px;
  font-size: .78rem;
}

@media (min-width: 720px){
  .footer__grid{ grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ==========================================================================
   17. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.wa-fab{
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--wa-500);
  color: #fff;
  padding: .95em 1.1em;
  border-radius: var(--r-pill);
  box-shadow: 0 16px 32px rgba(37,211,102,.4);
  font-weight: 700;
  font-size: .88rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.wa-fab:hover{ transform: translateY(-3px); background: var(--wa-600); }
.wa-fab__text{ display: none; }

@media (min-width: 640px){
  .wa-fab__text{ display: inline; }
}

/* ==========================================================================
   18. MODAL DE PRODUCTO
   ========================================================================== */
dialog{
  border: 0;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  color: inherit;
}
dialog::backdrop{
  background: rgba(36, 21, 57, .55);
  backdrop-filter: blur(4px);
}

.modal{
  margin: auto;
  width: min(94vw, 1040px);
  height: min(92dvh, 900px);
  max-height: min(92dvh, 900px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
}
/* display:flex solo mientras está abierto: puesto sin el [open], le
   gana (por ser CSS de autor) a la regla nativa del navegador que
   oculta el <dialog> cerrado (dialog:not([open]){display:none}), y el
   modal cerrado quedaba igual renderizado, tapando clics en el resto
   de la página. */
.modal[open]{
  display: flex;
  flex-direction: column;
}
/* .modal__panel no puede usar height:100% acá: el <dialog> solo tiene
   max-height (no height), así que un % no tiene base definida y el
   panel terminaba renderizando a su alto natural, tapando el pie con
   "Agregar al carrito". Con flex:1 + min-height:0 toma el alto ya
   recortado por max-height, sin depender de un height explícito. */
.modal__panel{ position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal__close{
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  background: rgba(255,255,255,.92);
}
.modal__scroll{ overflow-y: auto; flex: 1; min-height: 0; padding: clamp(20px, 3vw, 40px); }
.modal__grid{
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.modal__foot{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
/* En pantallas angostas (~360px y menos, muy común en Android) el texto
   de "Agregar al carrito" no entra al lado del selector de cantidad:
   como el botón tiene white-space:nowrap y los flex items no se
   achican por debajo de su contenido, el botón se salía del modal y
   quedaba cortado por el overflow:hidden. Se apila en dos filas. */
@media (max-width: 779px){
  .modal{
    width: min(94vw, 680px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: var(--r-lg);
  }
}

@media (max-width: 400px){
  .modal__foot{ flex-wrap: wrap; row-gap: 12px; }
  .modal__foot .qty{ flex: 1; justify-content: center; }
  .modal__foot #pAdd{ flex-basis: 100%; }
}

.gallery__main{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-tint);
  aspect-ratio: 1000/800;
  cursor: zoom-in;
}
.gallery__main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .05s linear;
}
.gallery__main.is-zooming img{ transition: none; }

.zoom-hint{
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 2;
  background: rgba(36,21,57,.75);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .45em .85em;
  border-radius: var(--r-pill);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery__main:hover .zoom-hint{ opacity: 1; }
.gallery__main.is-zooming .zoom-hint{ opacity: 0; }

.gallery__nav{
  position: absolute;
  top: 50%; translate: 0 -50%;
  background: rgba(255,255,255,.9);
}
.gallery__nav--prev{ left: 10px; }
.gallery__nav--next{ right: 10px; }
.zoom-btn{
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: .4em;
  background: rgba(36,21,57,.75);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .55em .9em;
  border-radius: var(--r-pill);
}
.gallery__thumbs{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery__thumbs button{
  flex: none;
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .7;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.gallery__thumbs img{ width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover{ opacity: 1; }
.gallery__thumbs button[aria-pressed="true"]{ border-color: var(--purple-500); opacity: 1; }

.detail__title{ font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .3em; }
.detail__price{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--purple-700);
  margin-bottom: .3em;
}
.detail__mayo{
  display: flex; align-items: center; gap: .5em;
  font-size: .82rem;
  color: var(--purple-700);
  background: var(--purple-50);
  border-radius: var(--r-sm);
  padding: .6em .8em;
  margin-bottom: .8em;
}
.detail__desc{ color: var(--ink-500); margin-bottom: 1.2em; font-size: .95rem; }
.detail__sub{ font-size: .95rem; margin-bottom: .6em; }

.perks{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.4em; }
.perks li{
  display: flex; align-items: center; gap: .5em;
  font-size: .8rem;
  background: var(--surface-tint);
  padding: .5em .85em;
  border-radius: var(--r-pill);
  color: var(--ink-700);
}
.perks .ico{ color: var(--purple-500); width: 16px; height: 16px; }

.opt{ margin-bottom: 1.3em; }
.opt legend{ font-weight: 700; font-size: .88rem; margin-bottom: .6em; }
.opt legend strong{ color: var(--purple-700); font-weight: 700; }

.swatches{ display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sw, var(--purple-300));
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--border);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.swatches button:hover{ transform: scale(1.08); }
.swatches button[aria-pressed="true"]{ box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--purple-600); }

.sizes{ display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button{
  min-width: 48px;
  padding: .6em .9em;
  border-radius: var(--r-sm);
  border: 1.4px solid var(--border);
  font-weight: 700;
  font-size: .85rem;
  transition: all .2s var(--ease);
}
.sizes button:hover{ border-color: var(--purple-400); }
.sizes button[aria-pressed="true"]{
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: #fff;
}

.size-table-wrap{ margin-block: 1.4em; }
.size-table{ font-size: .85rem; margin-bottom: .8em; }
.size-table th, .size-table td{
  text-align: left;
  padding: .7em .6em;
  border-bottom: 1px solid var(--border-soft);
}
.size-table th{ color: var(--ink-300); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }

.ask{
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .85rem; font-weight: 700;
  color: var(--wa-600);
}
.ask:hover{ text-decoration: underline; }

.qty{
  display: inline-flex; align-items: center; gap: 14px;
  border: 1.4px solid var(--border);
  border-radius: var(--r-pill);
  padding: .4em .6em;
}
.qty__btn{
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-tint);
}
.qty__btn:hover{ background: var(--purple-100); }
.qty__val{ min-width: 1.5em; text-align: center; font-weight: 700; }

@media (min-width: 780px){
  .modal__grid{ grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   19. VISOR CON ZOOM (LIGHTBOX)
   ========================================================================== */
.lightbox{
  margin: 0;
  width: 100vw; height: 100dvh;
  max-width: 100vw; max-height: 100dvh;
  background: rgba(15, 8, 22, .97);
  color: #fff;
}
.lightbox__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}
.lightbox__title{ font-size: .9rem; color: var(--on-dark-soft); }
.lightbox__tools{ display: flex; align-items: center; gap: 8px; }
.lb-btn{
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s var(--ease);
}
.lb-btn:hover{ background: rgba(255,255,255,.22); }
.lb-btn--text{ width: auto; padding-inline: 1em; font-size: .8rem; font-weight: 700; }

.lightbox__stage{
  position: relative;
  height: calc(100dvh - 130px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.lightbox__stage img{ max-width: 92%; max-height: 92%; object-fit: contain; user-select: none; }

.lb-nav{
  position: absolute;
  top: 50%; translate: 0 -50%;
}
.lb-nav--prev{ left: 16px; }
.lb-nav--next{ right: 16px; }

.lightbox__hint{
  text-align: center;
  font-size: .78rem;
  color: var(--on-dark-faint);
  padding-block: 12px;
}

/* ==========================================================================
   20. CARRITO (DRAWER)
   ========================================================================== */
.drawer{
  margin: 0 0 0 auto;
  width: min(100vw, 440px);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
}
/* Entra/sale deslizándose (la clase .is-open la maneja app.js, con un
   pequeño delay al cerrar para que el <dialog> no desaparezca antes
   de terminar la animación). */
@media (prefers-reduced-motion: no-preference){
  .drawer{
    transform: translateX(100%);
    transition: transform .32s var(--ease);
  }
  .drawer.is-open{ transform: translateX(0); }
}
.drawer__panel{ display: flex; flex-direction: column; height: 100%; }
.drawer__head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.drawer__head h2{ font-size: 1.15rem; flex: 1; }

.view{ display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer__body{ flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer__foot{
  padding: 18px 20px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

.cart-list{ display: flex; flex-direction: column; gap: 14px; }
.cart-list li{
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.cart-list img{
  width: 68px; height: 68px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex: none;
  background: var(--surface-tint);
}
.cart-item__body{ flex: 1; display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.cart-item__body b{ font-size: .92rem; }
.cart-item__meta{ font-size: .78rem; color: var(--ink-500); }
.cart-item__qty{ display: flex; align-items: center; gap: 10px; margin-top: .4em; }
.cart-item__qty span{ min-width: 1.2em; text-align: center; font-weight: 700; font-size: .85rem; }
.cart-item__remove{ margin-left: auto; font-size: .76rem; color: var(--ink-300); text-decoration: underline; }
.cart-item__remove:hover{ color: var(--terracotta-600); }
.cart-item__price{ font-weight: 700; color: var(--purple-700); font-size: .9rem; white-space: nowrap; flex: none; }

.cart-empty{ text-align: center; padding-block: 40px; color: var(--ink-500); }
.cart-empty__title{ font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-900); margin-bottom: .4em; }
.cart-empty .btn{ margin-top: 1.2em; }

.totals{ display: flex; flex-direction: column; gap: .5em; margin-bottom: 1em; }
.totals > div{ display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--ink-500); }
.totals__total{ font-size: 1.05rem !important; color: var(--ink-900) !important; font-weight: 700; }
.totals__total dd{ font-family: var(--font-display); font-size: 1.35rem; color: var(--purple-700); }

.lead-sm{ font-size: .92rem; color: var(--ink-500); margin-bottom: 1.2em; }
.form-alert{
  background: var(--terracotta-100);
  color: var(--terracotta-700);
  border-radius: var(--r-sm);
  padding: .9em 1em;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.2em;
}

.radio-cards{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card{
  position: relative;
  display: block;
  border: 1.4px solid var(--border);
  border-radius: var(--r-md);
  padding: 1em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.radio-card input{ position: absolute; opacity: 0; }
.radio-card__body strong{ display: block; font-size: .92rem; }
.radio-card__body small{ color: var(--ink-500); font-size: .78rem; }
.radio-card:has(input:checked){ border-color: var(--purple-600); background: var(--purple-50); }
.radio-card:has(input:checked) strong{ color: var(--purple-700); }
.radio-card:has(input:focus-visible){ outline: 2.5px solid var(--purple-500); outline-offset: 2px; }

.summary{
  background: var(--surface-tint);
  border-radius: var(--r-md);
  padding: 1em 1.2em;
  margin-top: 1.4em;
}
.summary__title{ font-weight: 700; font-size: .88rem; margin-bottom: .7em; }
.summary__list{ display: flex; flex-direction: column; gap: .5em; font-size: .85rem; color: var(--ink-700); }

.sent{ text-align: center; padding-block: 30px; }
.sent__icon{
  width: 64px; height: 64px;
  margin-inline: auto;
  margin-bottom: 1em;
  border-radius: 50%;
  background: var(--wa-500);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sent__icon .ico{ width: 30px; height: 30px; }
.sent h3{ font-size: 1.25rem; margin-bottom: .5em; }
.sent p{ color: var(--ink-500); font-size: .9rem; margin-bottom: 1.3em; }
.sent .notice{ margin-bottom: 1.2em; text-align: left; }

/* ==========================================================================
   21. TOAST
   ========================================================================== */
.toast{
  position: fixed;
  left: 50%; bottom: 26px;
  translate: -50% 0;
  z-index: 100;
  background: var(--ink-900);
  color: #fff;
  padding: .85em 1.4em;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(36,21,57,.14);
}

/* ==========================================================================
   22. RESPONSIVE FINO
   ========================================================================== */
@media (max-width: 480px){
  .hero__card{ left: 0; padding: .7em 1em; }
  .hero__tag{ right: 0; font-size: .72rem; }
  .star__price-card{ right: 0; }
  .cta-band__inner .btn{ width: 100%; }
  .radio-cards{ grid-template-columns: 1fr; }
}

@media (min-width: 1400px){
  html{ font-size: 17px; }
}


/* ==========================================================================
   23. PROMOCIONES Y PRECIOS PROMOCIONALES
   ========================================================================== */
.promotions__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.promotion-card{ border-radius: 24px; padding: 30px; min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow-md); border: 1px solid var(--border-soft); }
.promotion-card--primary{ background: var(--purple-50); }
.promotion-card--secondary{ background: var(--ink-900); color: #fff; }
.promotion-card__badge{ font-size: .68rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 18px; opacity: .78; }
.promotion-card__icon{ font-family: var(--font-display); font-size: 3.5rem; line-height: .9; font-weight: 600; margin-bottom: 12px; }
.promotion-card h3{ font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 8px; }
.promotion-card p{ max-width: 52ch; line-height: 1.55; margin-bottom: 22px; opacity: .82; }
.promotion-card .btn{ margin-top: auto; }
.promotions__note{ text-align: center; margin-top: 14px; color: var(--ink-500); font-size: .8rem; }

.promo-popout{ position: fixed; right: 22px; bottom: 22px; z-index: 90; width: min(340px, calc(100vw - 28px)); padding: 18px 18px 16px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(36,21,57,.2); border: 1px solid var(--border-soft); animation: promoPopIn .5s cubic-bezier(.2,.8,.2,1); transition: opacity .2s, transform .2s; }
.promo-popout.is-hidden{ opacity: 0; transform: translateY(16px); pointer-events: none; }
.promo-popout__close{ position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; color: var(--ink-500); }
.promo-popout__eyebrow{ font-size: .65rem; letter-spacing: .12em; font-weight: 800; color: var(--terracotta-600); margin-bottom: 8px; }
.promo-popout strong{ display: block; font-family: var(--font-display); font-size: 1.18rem; line-height: 1.05; }
.promo-popout span{ display: block; color: var(--ink-500); font-size: .78rem; margin-top: 2px; }
.promo-popout__divider{ height: 1px; background: var(--border-soft); margin: 12px 0; }
.promo-popout .btn{ width: 100%; margin-top: 14px; }
@keyframes promoPopIn{ from{ opacity: 0; transform: translateY(18px) scale(.97); } to{ opacity: 1; transform: none; } }

/* En mobile y tablet el popout flotante tapaba CTAs y texto en casi
   todas las secciones (no hay lugar para una tarjeta de 300px+ de alto
   sobre contenido fijo). Se oculta debajo de 900px, el mismo corte que
   ya usa el resto del sitio para pasar a diseño de escritorio: las
   mismas promos ya se ven en la sección "Promociones" y en cada precio
   del catálogo. */
@media (max-width: 899px){
  .promo-popout{ display: none; }
}
@media (max-width: 720px){
  .promotions__grid{ grid-template-columns: 1fr; }
  .promotion-card{ padding: 24px; min-height: 0; }
}

.promo-payment-field select{ width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; }

.card__price{ font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-900); display: flex; align-items: baseline; gap: .18em .45em; flex-wrap: wrap; }
.card__price s{ font-family: var(--font-body); font-size: .82rem; color: var(--ink-300); }
.card__price-note{ font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--ink-300); }
.card__price-old{ display: block; font-size: .72em; color: var(--ink-300); font-weight: 500; margin-bottom: 2px; }
.card__price-promo{ display: inline-block; color: var(--terracotta-600); font-size: 1.05em; }
.card__saving{ flex-basis: 100%; display: block; margin-top: .2em; color: var(--terracotta-700); font-size: .72rem; font-weight: 800; }
.card__cta{ display: block; margin-top: .9em; color: var(--purple-700); font-size: .78rem; font-weight: 800; }
.card:hover .card__cta{ text-decoration: underline; text-underline-offset: 3px; }
.card__promo-badge{ position: absolute; top: 12px; left: 12px; z-index: 2; padding: .42em .7em; border-radius: 999px; background: var(--terracotta-500); color: #fff; font-size: .68rem; font-weight: 800; box-shadow: 0 6px 14px rgba(36,21,57,.14); }

.detail__price-old{ display: block; font-size: .72em; color: var(--ink-300); font-weight: 500; }
.detail__price strong{ display: block; color: var(--terracotta-600); font-size: 1.35em; }
.detail__price-promo{ display: inline-block; margin-top: .25em; padding: .35em .65em; border-radius: 999px; background: var(--terracotta-100); color: var(--terracotta-700); font-family: var(--font-body); font-size: .68rem; font-weight: 800; line-height: 1.35; }

.totals__promo{ display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--terracotta-700); font-weight: 800; }
.totals__savings{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: .45em; border-top: 1px dashed var(--border); color: var(--terracotta-700); font-weight: 800; }
.totals__savings dd{ font-family: var(--font-display); }

@media (max-width: 640px){
  .card__saving{ font-size: .68rem; }
  .card__cta{ font-size: .75rem; }
  .card__promo-badge{ top: 9px; left: 9px; font-size: .61rem; }
}


/* Ajustes de navegación móvil: panel siempre interactivo cuando está abierto. */
@media (max-width: 899px){
  .site-header .nav{
    z-index: 120;
    visibility: hidden;
    pointer-events: none;
  }
  .site-header.menu-open .nav{
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    opacity: 1;
  }
  .site-header.menu-open .menu-btn{
    background: rgba(255,255,255,.12);
  }
}

/* El catálogo debe quedar claramente visible y con separación del header sticky. */
#catalogo{
  scroll-margin-top: calc(var(--header-h) + 18px);
}
