/* =========================================================
   Las Lilas Floristería — styles.css
   Mobile-first, sin frameworks, variables CSS.
   ========================================================= */

:root {
  /* Color */
  --color-bg: #E8DCC4;
  --color-bg-alt: #F2EADD;
  --color-bg-dark: #000000;
  --color-text: #1a1a1a;
  --color-text-soft: #555;
  --color-text-on-dark: #ffffff;
  --color-accent: #B8C9A8;
  --color-accent-dark: #98AC8A;
  --color-logo: #3D2E5F;
  --color-border: rgba(0, 0, 0, 0.12);
  --color-error: #b34141;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --container-tight: 720px;
  --header-h: 68px;

  /* Space scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 5rem;
  --space-8: 8rem;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--color-logo); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Base === */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { max-width: 70ch; }

/* Texto justificado en bloques de contenido (descripciones, info, legal) */
.two-col p,
.two-col__info p,
.legal-content p,
.contact-cta__text,
.product-info__desc {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #000; color: #fff; padding: 12px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* === Topbar === */
.topbar {
  background: #1a1410;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px var(--space-3);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
}
@media (max-width: 600px) {
  .topbar { font-size: 0.62rem; letter-spacing: 0.1em; }
  .topbar__inner { padding: 9px var(--space-2); }
}

/* === Header (cristal esmerilado) === */
.site-header {
  /* El blur va en ::before para no atrapar a los hijos fixed
     (menú móvil, botón cerrar) que necesitan posicionarse contra
     el viewport. */
  background: transparent;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 10, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  z-index: -1;
  pointer-events: none;
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-h);
}
.site-header__inner > .site-header__logo { justify-self: start; }
.site-header__inner > .site-nav { justify-self: center; }
.site-header__inner > .site-header__actions { justify-self: end; }
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.site-header__logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
}
.site-header__logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Zoom interno: la imagen se agranda y el wrapper recorta el círculo */
  transform: translateY(-2px) scale(1.35);
  display: block;
}

.site-nav__list {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
}
.site-nav__list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 4px;
  position: relative;
  transition: color 0.25s ease;
}
.site-nav__list a::after {
  /* Subrayado animado: crece desde el centro al hover / activo */
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 1px;
  background: var(--color-accent);
  transition: left 0.35s cubic-bezier(0.22, 0.85, 0.3, 1),
              right 0.35s cubic-bezier(0.22, 0.85, 0.3, 1),
              opacity 0.2s ease;
}
.site-nav__list a:hover {
  color: #fff;
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  left: 4px;
  right: 4px;
}
.site-nav__list a[aria-current="page"] {
  color: var(--color-accent);
}

/* Carrito dentro del menú móvil */
.site-nav__cart-item { display: none; }

/* El botón del carrito hereda EXACTAMENTE los estilos de los <a> del menú */
.site-nav__cart-link {
  /* Reset de botón */
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  /* Mismo styling que .site-nav__list a */
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 4px;
  position: relative;
  transition: color 0.25s ease;
  /* Layout interno (texto + badge) */
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-nav__cart-link:hover { color: #fff; }
/* Mismo subrayado animado que los enlaces */
.site-nav__cart-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 1px;
  background: var(--color-accent);
  transition: left 0.35s cubic-bezier(0.22, 0.85, 0.3, 1),
              right 0.35s cubic-bezier(0.22, 0.85, 0.3, 1);
}
.site-nav__cart-link:hover::after {
  left: 4px;
  right: 4px;
}

.site-nav__cart-badge {
  background: var(--color-accent);
  color: #000;
  font-size: 0.7em;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 20px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  font-weight: 600;
  text-transform: none;
}

@media (max-width: 900px) {
  .site-nav__cart-item { display: block; }
  .site-nav__cart-link {
    /* Misma override que los <a> del menú en móvil */
    font-size: 1.4rem;
    font-family: var(--font-serif);
  }
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.site-nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.site-header__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}
.cart-toggle:hover { color: var(--color-accent); transform: translateY(-1px); }
.cart-toggle:active { transform: translateY(0); }
.cart-toggle__count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-accent);
  color: #000;
  font-size: 0.66rem;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  animation: cart-badge-pop 0.4s ease-out;
}
@keyframes cart-badge-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* === Cart Drawer === */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.cart-drawer.is-open { pointer-events: auto; }
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 18, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.85, 0.3, 1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.18);
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
}
.cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  border-radius: 50%;
  transition: background 0.2s;
}
.cart-drawer__close:hover { background: var(--color-bg-alt); }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
}
.cart-drawer__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}
.cart-drawer__total strong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
}
.cart-drawer__note {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin: 0 0 var(--space-3);
  line-height: 1.4;
}
.cart-drawer__clear {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.78rem;
}
.cart-drawer__empty {
  text-align: center;
  padding: var(--space-7) var(--space-3);
  color: var(--color-text-soft);
}
.cart-drawer__empty p { margin: 0 auto var(--space-3); }

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__img {
  width: 78px;
  height: 96px;
  object-fit: cover;
  background: var(--color-bg-alt);
  border-radius: 3px;
}
.cart-item__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 2px;
}
.cart-item__variant {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin: 0 0 var(--space-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-item__detail {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin: 0 0 2px;
}
.cart-item__details {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  color: var(--color-text-soft);
}
.cart-item__details li { margin-bottom: 2px; }
.cart-item__price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 var(--space-2);
}
.cart-item__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-item__buy {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.cart-item__remove {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  color: var(--color-text-soft);
  border-radius: 50%;
  transition: all 0.2s;
}
.cart-item__remove:hover {
  color: var(--color-error);
  border-color: var(--color-error);
}

/* === Botón flotante WhatsApp === */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 199;
  width: 48px;
  height: 48px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab:active { transform: translateY(0) scale(1); }
.whatsapp-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.5);
  outline-offset: 3px;
}
/* Pulso anillado para llamar la atención */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: whatsapp-pulse 2.5s ease-out infinite;
}
@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 600px) {
  .whatsapp-fab {
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab::before { animation: none; opacity: 0; }
}

/* === Toast notification (al añadir al carrito) === */
.toast {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1410;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.85, 0.3, 1);
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast::before {
  content: "✓";
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .site-header__inner > .site-nav { order: 3; justify-self: end; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__list {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-7) var(--space-3) var(--space-5);
    gap: var(--space-4);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 150;
    overflow-y: auto;
  }
  .site-nav__list.is-open { transform: translateX(0); }
  .site-nav__list a { font-size: 1.4rem; font-family: var(--font-serif); }

  /* Toggle se queda visible (fixed) y morphea a X cuando el menú está abierto */
  .site-nav__toggle[aria-expanded="true"] {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 250;
    color: #fff;
  }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  font-weight: 500;
}
.btn--primary { background: #000; color: #fff; border-color: #000; }
.btn--primary:hover { background: transparent; color: #000; }
.btn--accent { background: var(--color-accent); color: #000; border-color: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn--light { background: #fff; color: #000; border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost { background: transparent; color: inherit; }
.btn--full { width: 100%; }
.btn--whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}
.btn--whatsapp:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}
.btn--whatsapp:active { transform: translateY(0); }

/* === Bloque CTA de contacto === */
.contact-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-3);
}
.contact-cta__text {
  font-size: 1rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.55;
  max-width: 38ch;
}
.contact-cta__alt {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin: 0;
}
.contact-cta__alt a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-cta__alt a:hover { color: var(--color-logo); }

/* === Reveal on scroll (animaciones de entrada) === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.85, 0.3, 1),
    transform 0.9s cubic-bezier(0.22, 0.85, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--zoom {
  transform: translateY(24px) scale(0.96);
}
.reveal--zoom.is-visible {
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === Valoraciones / testimonios === */
.testimonials {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-5);
}
@media (min-width: 768px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}
.testimonial {
  background: var(--color-bg-alt);
  padding: var(--space-5) var(--space-4);
  border-radius: 4px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  /* Comilla decorativa de fondo */
  content: "“";
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 1;
  color: rgba(61, 46, 95, 0.08);
  pointer-events: none;
}
.testimonial__stars {
  color: #d4a437;
  font-size: 1rem;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text);
  position: relative;
  z-index: 1;
  flex: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin-top: auto;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-logo) 0%, #5a4880 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.testimonial__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.testimonial__meta strong {
  font-size: 0.92rem;
  font-weight: 500;
}
.testimonial__meta small {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

/* === Carrusel de galería (auto-scroll infinito) === */
.carousel {
  padding: var(--space-7) 0 var(--space-6);
  overflow: hidden;
  position: relative;
}
.carousel__heading {
  text-align: center;
  margin-bottom: var(--space-5);
  padding: 0 var(--space-3);
}
.carousel__heading .section__title {
  margin: var(--space-2) 0 0;
}
.carousel__viewport {
  overflow: hidden;
  width: 100%;
  /* Fades laterales: las imágenes se desvanecen a los bordes */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.carousel__track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
}
.carousel__item {
  flex: 0 0 auto;
  width: clamp(240px, 28vw, 360px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  background: var(--color-bg-alt);
  border-radius: 2px;
  cursor: pointer;
}
.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.85, 0.3, 1);
  display: block;
}
.carousel__item:hover img {
  transform: scale(1.04);
}

/* === Lightbox (click en foto → ampliada) === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.22, 0.85, 0.3, 1);
  transform: scale(0.96);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 600px) {
  .carousel { padding: var(--space-6) 0 var(--space-5); }
  .carousel__track { animation-duration: 30s; gap: var(--space-2); }
  .carousel__item { width: clamp(200px, 60vw, 280px); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__track { animation: none; }
}

/* === Hero clásico con vídeo / foto fullscreen === */
.hero-classic {
  position: relative;
  height: clamp(560px, calc(100vh - 100px), 760px);
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero-classic__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.hero-classic__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}
.hero-classic__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--space-5);
  max-width: 60ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-classic__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-3);
}
.hero-classic__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: var(--space-3);
}
.hero-classic__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0 auto var(--space-5);
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
  .hero-classic {
    margin: 0;
    height: clamp(440px, calc(100vh - 130px), 600px);
  }
}

/* === Hero split (legacy, no se usa en home actualmente) === */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  margin: var(--space-5) var(--space-4) 0;
}
.hero-split__panel {
  position: relative;
  overflow: hidden;
}
.hero-split__panel--image {
  height: clamp(440px, calc(100vh - 160px), 720px);
}
.hero-split__panel--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-split__panel--text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-3);
  background: var(--color-bg);
  min-height: 320px;
}
.hero-split__copy {
  max-width: 40ch;
  margin: 0 auto;
  text-align: center;
}
.hero-split__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-3);
}
.hero-split__panel--image .hero-split__title-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 50%);
}
.hero-split__panel--image .hero-split__title-overlay h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    margin: var(--space-6) var(--space-6) 0;
  }
  .hero-split__panel--image,
  .hero-split__panel--text {
    aspect-ratio: auto;
    height: clamp(500px, calc(100vh - 180px), 780px);
    min-height: 0;
  }
}

/* === Section === */
.section {
  padding: var(--space-7) var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
}
.section--narrow { max-width: var(--container-narrow); }
.section--tight { max-width: var(--container-tight); }
.section--center { text-align: center; }
/* Centra horizontalmente los <p> hijos directos (afectados por p { max-width: 70ch }) */
.section--center > p { margin-left: auto; margin-right: auto; }
.section--alt { background: var(--color-bg-alt); max-width: none; }
.section--alt > .section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  /* Compensa el espaciado tras la última letra para que se vea centrado de verdad */
  text-indent: 0.18em;
}
.section__title {
  margin: var(--space-2) 0 var(--space-5);
}
.section__lead {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 60ch;
  margin: 0 auto var(--space-5);
}

/* === How it works === */
.how-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}
.how-step { text-align: center; padding: 0 var(--space-2); }
.how-step__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  color: var(--color-logo);
}
.how-step__num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
  letter-spacing: 0.1em;
}
.how-step__title {
  margin-bottom: var(--space-2);
  font-size: 1.2rem;
}
.how-step p { margin: 0 auto; max-width: 32ch; }

/* === Product grid === */
.products-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-top: var(--space-3);
}
.product-card__price {
  color: var(--color-text-soft);
  margin-top: var(--space-1);
  font-size: 0.95rem;
}

/* === Banners === */
.banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-3);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.banner__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.banner__content { max-width: 56ch; }
.banner__title { color: #fff; margin-bottom: var(--space-3); }
.banner__lead { color: rgba(255,255,255,0.92); margin: 0 auto var(--space-4); }

.delivery-banner {
  background: var(--color-accent);
  padding: var(--space-5) var(--space-3);
  margin-top: var(--space-7);
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: #1a1a1a;
}

/* === Page header === */
.page-header {
  padding: var(--space-7) var(--space-3) var(--space-5);
  text-align: center;
  max-width: 70ch;
  margin: 0 auto;
}
.page-header__lead { margin: var(--space-3) auto 0; color: var(--color-text-soft); }

/* === Product page === */
.product-page {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  padding: var(--space-6) var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .product-page {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    padding-top: var(--space-7);
  }
}
.gallery__main {
  aspect-ratio: 4/5;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.gallery__thumb {
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  border: 0;
  opacity: 0.65;
  transition: opacity .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 0.9; }
.gallery__thumb.is-active { opacity: 1; outline: 2px solid var(--color-logo); outline-offset: 2px; }

.product-info__subtitle {
  font-style: italic;
  color: var(--color-text-soft);
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}
.product-info__price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: var(--space-3) 0;
  color: var(--color-text-soft);
}
.product-info__desc { margin-bottom: var(--space-5); }

/* Precio dentro de cada chip de variante (cuando aplica) */
.variant__price {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-left: 4px;
}
.variant.is-active .variant__price { color: rgba(255, 255, 255, 0.78); }

/* Subtítulo en las cards del catálogo */
.product-card__subtitle {
  font-style: italic;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin: 2px 0 0;
}

/* Galería vacía (producto sin foto todavía) */
.gallery__main--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background:
    repeating-linear-gradient(45deg,
      var(--color-bg-alt) 0,
      var(--color-bg-alt) 12px,
      rgba(0,0,0,0.02) 12px,
      rgba(0,0,0,0.02) 24px);
}

/* Placeholder cuando una product-card no tiene imagen */
.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-soft);
  font-style: italic;
  font-size: 0.9rem;
  background:
    repeating-linear-gradient(45deg,
      var(--color-bg-alt) 0,
      var(--color-bg-alt) 10px,
      rgba(0,0,0,0.02) 10px,
      rgba(0,0,0,0.02) 20px);
}
.product-info__notice {
  margin: var(--space-3) 0 var(--space-4);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-accent, #b89bd9);
  background: rgba(184, 155, 217, 0.08);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}
.product-info__notice strong { color: var(--color-text); }
.product-info__actions {
  display: grid;
  gap: var(--space-2);
}
.product-info__hint {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  text-align: center;
}

/* === Form === */
.form { max-width: 640px; }
.field {
  display: block;
  margin-bottom: var(--space-4);
  position: relative;
}
.field__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--color-text-soft);
}
.field__control {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  border-radius: 4px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__control::placeholder {
  color: rgba(85, 85, 85, 0.5);
}
.field__control:hover { border-color: rgba(0, 0, 0, 0.25); }
.field__control:focus {
  outline: none;
  border-color: var(--color-logo);
  box-shadow: 0 0 0 3px rgba(61, 46, 95, 0.12);
  background-color: #fff;
}
/* Estado válido — checkmark verde a la derecha */
.field__control.is-valid {
  border-color: #6f8e6f;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236f8e6f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
/* Estado inválido — × rojo */
.field__control[aria-invalid="true"] {
  border-color: var(--color-error);
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b34141' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: 0 0 0 3px rgba(179, 65, 65, 0.1);
}

/* Selectores nativos: añade flechita custom */
select.field__control {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

textarea.field__control {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

/* Contador de caracteres con barra de progreso */
.field__counter {
  position: relative;
  font-size: 0.75rem;
  color: var(--color-text-soft);
  text-align: right;
  margin-top: 6px;
  padding-top: 6px;
  letter-spacing: 0.02em;
}
.field__counter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}
.field__counter::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: var(--counter-progress, 0%);
  background: var(--color-logo);
  border-radius: 2px;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.field__counter[data-progress-state="warn"]::after { background: #c9883a; }
.field__counter[data-progress-state="full"]::after { background: var(--color-error); }

.field__error {
  color: var(--color-error);
  font-size: 0.82rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: field-error-shake 0.4s ease-out;
}
.field__error::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b34141' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='13'/><line x1='12' y1='16' x2='12' y2='16.01'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
@keyframes field-error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.field--row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; } }

/* === Wizard (formularios por pasos) === */
.wizard__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: var(--space-5);
}
.wizard__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-soft);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 0.85, 0.3, 1);
  flex-shrink: 0;
}
.wizard__dot.is-active {
  background: var(--color-logo);
  color: #fff;
  border-color: var(--color-logo);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(61, 46, 95, 0.12);
}
.wizard__dot.is-completed {
  background: var(--color-logo);
  color: #fff;
  border-color: var(--color-logo);
}
.wizard__dot.is-completed::after {
  content: "✓";
  font-size: 0.95rem;
  font-family: var(--font-sans);
}
.wizard__dot.is-completed > span { display: none; }
.wizard__line {
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: var(--color-border);
  transition: background-color 0.35s ease;
}
.wizard__line.is-completed { background: var(--color-logo); }

.wizard__heading {
  text-align: center;
  margin-bottom: var(--space-4);
}
.wizard__step-num {
  display: block;
  font-size: 0.74rem;
  color: var(--color-text-soft);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wizard__step-title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 500;
  color: var(--color-text);
}

/* Cada paso = tarjeta visual independiente */
.wizard__step {
  display: none;
  animation: wizard-slide-in 0.45s cubic-bezier(0.22, 0.85, 0.3, 1);
  background: var(--color-bg-alt);
  padding: var(--space-5);
  border-radius: 6px;
  border: 1px solid rgba(61, 46, 95, 0.06);
}
.wizard__step.is-active { display: block; }
.wizard__step .field:last-child { margin-bottom: 0; }

/* Barra de progreso continua que se rellena al avanzar */
.wizard__progress-bar {
  height: 2px;
  background: rgba(61, 46, 95, 0.1);
  border-radius: 2px;
  margin: -10px 0 var(--space-4);
  overflow: hidden;
}
.wizard__progress-bar-fill {
  height: 100%;
  background: var(--color-logo);
  border-radius: 2px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.22, 0.85, 0.3, 1);
}
@keyframes wizard-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wizard__nav {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.wizard__back,
.wizard__next,
.wizard__submit {
  flex: 1;
  padding: 16px 24px;
}
.wizard__back {
  flex: 0 1 auto;
  min-width: 120px;
}

@media (max-width: 480px) {
  .wizard__progress { gap: 8px; }
  .wizard__dot { width: 32px; height: 32px; font-size: 0.85rem; }
  .wizard__line { max-width: 32px; }
}

/* === Chips visuales (sustituye selects en formularios largos) === */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  border-radius: 999px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
  font-family: inherit;
  color: var(--color-text);
  letter-spacing: 0.02em;
  user-select: none;
}
.chip:hover {
  border-color: var(--color-logo);
  color: var(--color-logo);
}
.chip:active { transform: scale(0.97); }
.chip.is-active {
  background: var(--color-logo);
  color: #fff;
  border-color: var(--color-logo);
}
.chip.is-active:hover {
  background: #2a1f44;
  border-color: #2a1f44;
}

/* Botón submit con hover más sólido */
.btn--full {
  padding: 16px 28px;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}
.btn--primary.btn--full:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn--primary.btn--full:active {
  transform: translateY(0);
}

/* Variant pills */
.variants {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.variant {
  padding: 10px 18px;
  border: 1px solid #000;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background .2s, color .2s;
}
.variant:hover { background: rgba(0,0,0,0.05); }
.variant.is-active { background: #000; color: #fff; }

/* === Trust row === */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-row__item { text-align: center; }
.trust-row__icon { width: 32px; height: 32px; margin: 0 auto var(--space-2); color: var(--color-logo); }
.trust-row__label { font-size: 0.85rem; }

/* === Accordion === */
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.accordion__btn::after {
  content: "+";
  font-size: 1.4rem;
  font-family: var(--font-sans);
  font-weight: 300;
}
.accordion__btn[aria-expanded="true"]::after { content: "−"; }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.accordion__panel[aria-hidden="false"] {
  max-height: 600px;
  padding-bottom: var(--space-3);
}
.accordion__panel p { color: var(--color-text-soft); }

/* === Two column layout === */
.two-col {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h2 { margin-bottom: var(--space-3); }
.two-col__info p { margin-bottom: var(--space-3); }
.two-col__info dl { display: grid; gap: var(--space-2); }
.two-col__info dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); margin-top: var(--space-3); }
.two-col__info dd { font-size: 1rem; }

/* === Events gallery === */
.events-gallery {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .events-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .events-gallery { grid-template-columns: repeat(3, 1fr); } }
.events-gallery__item {
  aspect-ratio: 4/5;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.events-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* === Legal content === */
.legal-content {
  max-width: 70ch;
  margin: 0 auto;
  padding: var(--space-6) var(--space-3) var(--space-7);
}
.legal-content h1 { margin-bottom: var(--space-5); }
.legal-content h2 { margin: var(--space-5) 0 var(--space-2); font-size: 1.4rem; }
.legal-content h3 { margin: var(--space-4) 0 var(--space-2); font-size: 1.1rem; }
.legal-content p,
.legal-content ul { margin-bottom: var(--space-3); }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content ul li { margin-bottom: var(--space-1); }

/* === Footer === */
.site-footer {
  background: #000;
  color: #fff;
  padding: var(--space-6) var(--space-3) var(--space-3);
  margin-top: var(--space-7);
}
/* Cuando el último bloque antes del footer es el banner de reparto,
   eliminamos el hueco para que ambos queden pegados. */
body:has(main > .delivery-banner:last-child) .site-footer {
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: repeat(4, 1fr); }
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: #fff;
}
.site-footer ul { padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 200;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
  }
}
.cookie-banner p { font-size: 0.88rem; max-width: 60ch; }
.cookie-banner__actions { display: flex; gap: var(--space-2); }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.78rem; }

/* === Success modal (formularios Web3Forms) === */
.ll-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ll-modal.is-open { display: flex; }
.ll-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.ll-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: ll-modal-in 0.3s ease;
}
@keyframes ll-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ll-modal__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e7f5e9;
  color: #2a7f3e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ll-modal__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}
.ll-modal__text {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin: 0 0 1.75rem;
}
.ll-modal .btn { min-width: 140px; }
