/* =========================================================
   MAPOLIN KIDS — Sistema de diseño (tienda online)
   Paleta (tomada del logo — arcoíris pastel sobre crema, SIN morados
   ni fondos negros — solo tonos cálidos y pasteles):
     --tinta       #4A3F3D  texto principal / fondos oscuros (marrón cálido, NO morado)
     --tinta-suave #8C7F79  texto secundario
     --crema       #FDEFE0  fondo general (crema del logo)
     --superficie  #FFFFFF  tarjetas
     --borde       #F5DCC0  bordes sutiles
     --amarillo    #F9C74C  acento primario (marca, CTA — dorado del logo)
     --amarillo-osc#E0A422  hover del amarillo
     --fucsia      #E8628F  acento principal de marca (rosado del logo — precios, botones, promo)
     --fucsia-osc  #D14577  hover del rosado
     --rosa        #F4A6A6  acento decorativo (confeti, guirnalda, arcoíris — coral-rosado)
     --verde-pluma #8FBF72  acento terciario (verde del logo)
     --azul        #8FC7E8  acento terciario (celeste del logo)
     --lavanda     #E8F3FB  fondos suaves / chips (celeste muy clarito)
     --coral       #F2794F  alertas / promo (naranja cálido, color de apoyo)
   Tipografía:
     Display -> "Fredoka"  (titulares, redonda y festiva — combina con el logo)
     Cuerpo  -> "Inter"    (UI, legibilidad)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --tinta: #4A3F3D;
  --tinta-suave: #8C7F79;
  --crema: #FDEFE0;
  --superficie: #FFFFFF;
  --borde: #F5DCC0;
  --amarillo: #F9C74C;
  --amarillo-oscuro: #E0A422;
  --fucsia: #E8628F;
  --fucsia-oscuro: #D14577;
  --rosa: #F4A6A6;
  --verde-pluma: #8FBF72;
  --lavanda: #E8F3FB;
  --coral: #F2794F;
  --coral-oscuro: #E67A4D;
  --verde-wpp: #25D366;
  --azul: #8FC7E8;

  --font-display: 'Fredoka', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radio: 24px;
  --radio-sm: 16px;
  --sombra: 0 12px 32px rgba(74, 63, 61, 0.10);
  --sombra-fuerte: 0 24px 60px rgba(232, 98, 143, 0.30);
}

@keyframes flotar-suave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}
@keyframes girar-lento {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes girar-lento-inverso {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes rebotar {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}
@keyframes destello {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes confeti-explotar {
  0% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6); opacity: 0; }
}
.confeti-particula {
  position: fixed;
  z-index: 90;
  font-size: 1.3rem;
  pointer-events: none;
  animation: confeti-explotar 0.65s ease-out forwards;
}
@keyframes pulso-anillo {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

* { box-sizing: border-box; }

/* El atributo [hidden] SIEMPRE debe ganar, sin importar si alguna regla
   más abajo en la hoja de estilos le pone "display" a ese mismo elemento
   (ej. display:flex en un contenedor que a veces se oculta con .hidden =
   true desde JS) — si no, el elemento queda "hidden" pero visible igual. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fucsia-oscuro);
  background: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(74, 63, 61, 0.10);
}
.eyebrow::before { content: '✦'; }

.cargando { text-align: center; color: var(--tinta-suave); padding: 2rem 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 239, 224, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px dotted var(--borde);
  padding: 0.85rem 1.5rem;
}

.header__row {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.15;
  justify-self: center;
  text-decoration: none;
}

.brand__logo {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.15s ease;
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }

.brand__texto {
  display: none;
  flex-direction: column;
}
body.sin-logo .brand__texto { display: flex; }

.brand__nombre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--tinta);
}

.brand__eslogan {
  display: block;
  font-size: 0.75rem;
  color: var(--tinta-suave);
  letter-spacing: 0.01em;
}

.icon-btn {
  background: var(--lavanda);
  border: 2px solid var(--superficie);
  color: var(--tinta);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  justify-self: start;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { background: var(--azul); color: white; transform: rotate(-8deg) scale(1.05); }
.icon-btn.activo {
  background: var(--fucsia);
  color: white;
}

.cart-btn {
  position: relative;
  background: var(--fucsia);
  color: white;
  border: 2px solid var(--superficie);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  justify-self: end;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cart-btn:hover { background: var(--fucsia-oscuro); transform: rotate(8deg) scale(1.05); }
.cart-btn:active { transform: scale(0.92); }

.cart-btn__badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--coral);
  color: white;
  border: 2px solid var(--crema);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

/* ---------- Hero (cielo pastel con arcoíris y nubes) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 6.5rem;
  background: linear-gradient(180deg, #FFF3E0 0%, #FDE0EC 48%, #F8D7EA 100%);
}

/* Anillos de arcoíris (conic-gradient recortado en forma de dona) que
   asoman en las esquinas del hero, como el arcoíris del logo. */
.hero__blob {
  display: block;
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero__blob--1 {
  width: 380px;
  height: 380px;
  top: -190px;
  left: -160px;
  background: conic-gradient(from 90deg, var(--fucsia), var(--amarillo), var(--verde-pluma), var(--azul), var(--rosa), var(--fucsia));
  -webkit-mask: radial-gradient(circle, transparent 60%, black 61.5%, black 68%, transparent 69.5%);
  mask: radial-gradient(circle, transparent 60%, black 61.5%, black 68%, transparent 69.5%);
  opacity: 0.65;
  animation: girar-lento 50s linear infinite;
}
.hero__blob--2 {
  width: 260px;
  height: 260px;
  bottom: -140px;
  right: -110px;
  background: conic-gradient(from 45deg, var(--azul), var(--rosa), var(--fucsia), var(--amarillo), var(--verde-pluma), var(--azul));
  -webkit-mask: radial-gradient(circle, transparent 55%, black 57%, black 66%, transparent 68%);
  mask: radial-gradient(circle, transparent 55%, black 57%, black 66%, transparent 68%);
  opacity: 0.5;
  animation: girar-lento-inverso 40s linear infinite;
}

/* Nubes esponjosas flotando detrás del texto */
.hero__nube {
  position: absolute;
  z-index: 0;
  background: #FFFFFF;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(1px);
  pointer-events: none;
  animation: flotar-suave 9s ease-in-out infinite;
}
.hero__nube--1 { width: 130px; height: 130px; top: 12%; left: 12%; animation-duration: 11s; }
.hero__nube--1::before,
.hero__nube--1::after,
.hero__nube--2::before,
.hero__nube--2::after {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border-radius: 50%;
}
.hero__nube--1::before { width: 80px; height: 80px; top: -30px; left: 10px; }
.hero__nube--1::after { width: 70px; height: 70px; top: -10px; right: -20px; }
.hero__nube--2 { width: 100px; height: 100px; top: 62%; right: 14%; animation-duration: 8s; animation-delay: 1.4s; opacity: 0.45; }
.hero__nube--2::before { width: 60px; height: 60px; top: -22px; left: 5px; }
.hero__nube--2::after { width: 50px; height: 50px; top: -8px; right: -14px; }

@media (max-width: 640px) {
  .hero__blob--1 { width: 240px; height: 240px; top: -120px; left: -110px; }
  .hero__blob--2 { width: 180px; height: 180px; bottom: -90px; right: -80px; }
  .hero__nube--1, .hero__nube--2 { transform: scale(0.7); }
}

/* Ola que conecta el hero con el resto de la página */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background-color: var(--crema);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 150 60 350 0 600 30 C 850 60 1050 0 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 150 60 350 0 600 30 C 850 60 1050 0 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.hero__copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0.7rem 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tinta);
  text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 0 8px 20px rgba(232, 98, 143, 0.25);
}

.hero p {
  color: var(--tinta);
  opacity: 0.75;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.8rem;
}

.hero__cta {
  display: inline-block;
  background: var(--fucsia);
  color: white;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 14px 30px rgba(232, 98, 143,0.32);
  border: 3px solid #fff;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.hero__cta::after { content: ' ✨'; }
.hero__cta:hover {
  background: var(--fucsia-oscuro);
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
  box-shadow: 0 18px 34px rgba(232, 98, 143,0.4);
}

.hero__meta {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--tinta);
  opacity: 0.7;
}

/* ---------- Nav de categorías ---------- */
.cat-nav {
  padding: 1rem 1.5rem 0;
}

.cat-nav__row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.cat-pill {
  border: 2px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cat-pill:hover { transform: translateY(-2px) rotate(-1deg); }
.cat-pill.activa {
  background: var(--fucsia);
  color: white;
  border-color: var(--fucsia);
  transform: translateY(-2px) scale(1.05);
}
.cat-nav__row .cat-pill:nth-child(6n+2).activa { background: var(--amarillo-oscuro); border-color: var(--amarillo-oscuro); color: var(--tinta); }
.cat-nav__row .cat-pill:nth-child(6n+3).activa { background: var(--verde-pluma); border-color: var(--verde-pluma); }
.cat-nav__row .cat-pill:nth-child(6n+4).activa { background: var(--rosa); border-color: var(--rosa); }
.cat-nav__row .cat-pill:nth-child(6n+5).activa { background: var(--coral); border-color: var(--coral); }

/* ---------- Catálogo ---------- */
.menu-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5.5rem;
  scroll-margin-top: calc(var(--alto-header, 69px) + 12px);
}

/* Cada categoría es un contenedor con id="cat-{slug}" (dentro de
   #menuContenido) — es el ancla real a la que saltan los botones de
   categoría, así que el margen de scroll va aquí (y no solo en el
   título) para no quedar tapado por la barra fija. */
[id^="cat-"] {
  scroll-margin-top: calc(var(--alto-header, 69px) + 12px);
}

.menu-section__titulo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 1.4rem;
  padding-top: 1.6rem;
  letter-spacing: -0.01em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-bottom: 2.6rem;
}

.producto-card {
  position: relative;
  background: var(--superficie);
  border-radius: var(--radio);
  overflow: hidden;
  border: 2px solid var(--borde);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease, border-color 0.18s ease;
}
.producto-card:nth-child(odd):hover {
  transform: translateY(-6px) rotate(-1.2deg) scale(1.02);
}
.producto-card:nth-child(even):hover {
  transform: translateY(-6px) rotate(1.2deg) scale(1.02);
}
.producto-card:hover {
  box-shadow: var(--sombra-fuerte);
  border-color: var(--fucsia);
}

.producto-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--lavanda);
  border-radius: 0 0 46% 46% / 0 0 18% 18%;
}

.producto-card__badges {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.producto-card__promo-badge {
  background: var(--coral);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(230, 122, 77, 0.35);
  border: 2px solid #fff;
  transform: rotate(-4deg);
  display: inline-block;
  width: fit-content;
}
.producto-card__promo-badge::before { content: '★ '; }
.producto-card__promo-badge--nuevo {
  background: var(--azul);
  box-shadow: 0 4px 10px rgba(143, 199, 232, 0.5);
  transform: rotate(3deg);
}
.producto-card__promo-badge--nuevo::before { content: '✨ '; }
.producto-card__promo-badge--favorito {
  background: var(--fucsia);
  box-shadow: 0 4px 10px rgba(232, 98, 143, 0.4);
  transform: rotate(-3deg);
}
.producto-card__promo-badge--favorito::before { content: ''; }
.producto-card__promo-badge--ultimas {
  background: var(--amarillo-oscuro);
  color: var(--tinta);
  box-shadow: 0 4px 10px rgba(224, 164, 34, 0.4);
  transform: rotate(3deg);
  animation: destello 2s ease-in-out infinite;
}
.producto-card__promo-badge--ultimas::before { content: '⏳ '; }

.producto-card__favorito {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--tinta-suave);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(74, 63, 61, 0.15);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.producto-card__favorito:hover { transform: scale(1.15); }
.producto-card__favorito--activo {
  color: var(--fucsia);
  background: #fff;
  animation: rebotar 0.4s ease;
}

.producto-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.producto-card__nombre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.005em;
}

.producto-card__desc {
  font-size: 0.83rem;
  color: var(--tinta-suave);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

/* ---- Swatches de color (variaciones) en la tarjeta ---- */
.producto-card__swatches {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.producto-card__swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--borde);
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.producto-card__swatch img { width: 100%; height: 100%; object-fit: cover; }
.producto-card__swatch.activo,
.producto-card__swatch:hover { border-color: var(--fucsia); }

.producto-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}

.producto-card__precio-actual {
  font-weight: 700;
  color: var(--fucsia);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.producto-card__precio-original {
  color: var(--tinta-suave);
  font-size: 0.8rem;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
}

.producto-card__add {
  background: var(--tinta);
  color: white;
  border: none;
  border-radius: 999px;
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.producto-card__add:hover { background: var(--fucsia); transform: scale(1.15) rotate(90deg); }
.producto-card__add:active { transform: scale(0.9); }

/* ---------- Aviso "agregado al carrito" ---------- */
.toast-agregado {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--tinta);
  color: white;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 14px 30px rgba(74, 63, 61,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}
.toast-agregado.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-agregado__icono {
  background: var(--verde-pluma);
  color: white;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ---------- Carrito (panel lateral) ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 63, 61,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.cart-overlay.abierto { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--crema);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 51;
  display: flex;
  flex-direction: column;
}
.cart-panel.abierto { transform: translateX(0); }

.cart-panel__header {
  background: var(--tinta);
  color: white;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-panel__header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}
.cart-panel__cerrar {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-panel__lista {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
}

.cart-panel__vacio {
  text-align: center;
  color: var(--tinta-suave);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.comanda-item {
  border-bottom: 1px solid var(--borde);
  padding: 0.9rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.comanda-item__img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--lavanda);
}

.comanda-item__info { flex: 1; }

.comanda-item__nombre {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
}

.comanda-item__variacion {
  font-size: 0.75rem;
  color: var(--tinta-suave);
  display: block;
  margin-bottom: 0.15rem;
}

.comanda-item__precio-unit {
  font-size: 0.76rem;
  color: var(--tinta-suave);
  font-variant-numeric: tabular-nums;
}

.comanda-item__descuento {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1E7B3B;
  margin-top: 0.15rem;
}

.comanda-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.comanda-item__qty button {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  cursor: pointer;
  font-size: 0.9rem;
}
.comanda-item__qty button:hover { border-color: var(--fucsia); color: var(--fucsia); }

.comanda-item__qty span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 1.2rem;
  text-align: center;
  font-size: 0.88rem;
}

.comanda-item__subtotal {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--tinta);
}

.comanda-item__quitar {
  background: none;
  border: none;
  color: var(--coral-oscuro);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.35rem;
  font-weight: 600;
}

.cart-panel__mayorista-aviso {
  background: var(--lavanda);
  border: 1px dashed var(--verde-pluma);
  border-radius: var(--radio-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  color: var(--tinta);
  margin: 0 0 0.8rem;
}

.cart-panel__envio-info {
  font-size: 0.76rem;
  color: var(--tinta-suave);
  text-align: center;
  margin: 0 0 0.8rem;
}

.cart-panel__footer {
  border-top: 1px solid var(--borde);
  padding: 1.2rem 1.4rem 1.5rem;
  background: var(--superficie);
}

.cart-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  margin-bottom: 1rem;
}
.cart-panel__total span:last-child {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fucsia);
  font-variant-numeric: tabular-nums;
}

.btn-pagar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--fucsia);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.btn-pagar:hover { filter: brightness(0.95); }
.btn-pagar:disabled { opacity: 0.5; cursor: not-allowed; }

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--verde-wpp);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.whatsapp-btn:hover { filter: brightness(0.95); }
.whatsapp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.5) 50%, transparent 52%),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,0.4) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 45% 60%, rgba(255,255,255,0.5) 50%, transparent 52%),
    radial-gradient(2px 2px at 65% 80%, rgba(255,255,255,0.35) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(255,255,255,0.4) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90% 65%, rgba(255,255,255,0.35) 50%, transparent 52%),
    var(--tinta);
  color: #C9BEDA;
  padding: 3.4rem 1.5rem 2.6rem;
  font-size: 0.85rem;
  margin-top: 2rem;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background-color: var(--crema);
  transform: translateY(-100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 16 C 200 32 400 0 600 16 C 800 32 1000 0 1200 16 L1200 32 L0 32 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 16 C 200 32 400 0 600 16 C 800 32 1000 0 1200 16 L1200 32 L0 32 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.footer__marca {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.footer__marca::before { content: '🌈 '; }
.footer__marca::after { content: ' 💛'; }
.footer p { margin: 0.25rem 0; }
.footer a { color: var(--amarillo); }

/* ---------- Buscador predictivo (desplegable desde el icono del header) ---------- */
.search-bar {
  position: absolute;
  top: 100%;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  z-index: 46;
  animation: desplegar 0.15s ease;
}

@keyframes desplegar {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-bar__input {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--superficie);
  color: var(--tinta);
  box-shadow: var(--sombra);
}
.search-bar__input:focus {
  outline: 2px solid var(--fucsia);
  outline-offset: 1px;
}

.search-bar__resultados {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  box-shadow: var(--sombra);
  z-index: 45;
  max-height: 340px;
  overflow-y: auto;
}

.search-bar__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}
.search-bar__item:hover { background: var(--lavanda); }
.search-bar__item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.search-bar__item-nombre { font-weight: 600; font-size: 0.86rem; margin: 0; }
.search-bar__item-precio { font-size: 0.78rem; color: var(--tinta-suave); margin: 0; }
.search-bar__vacio { padding: 0.9rem; text-align: center; color: var(--tinta-suave); font-size: 0.85rem; margin: 0; }

/* ---------- Título del catálogo ---------- */
.catalogo-titulo {
  max-width: 1180px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tinta);
}
.catalogo-titulo::before,
.catalogo-titulo::after {
  content: '⭐';
  font-size: 1.1rem;
  display: inline-block;
  margin: 0 0.5rem;
  animation: destello 2.6s ease-in-out infinite;
  vertical-align: middle;
}
.catalogo-titulo::after { animation-delay: 1.1s; }

/* ---------- Ordenar catálogo ---------- */
.orden-bar {
  max-width: 1180px;
  margin: 0.6rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.orden-bar__campo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.orden-bar__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.orden-bar__tallas {
  margin-left: auto;
  background: var(--lavanda);
  border: 2px solid var(--superficie);
  color: var(--tinta);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.orden-bar__tallas:hover { background: var(--azul); color: #fff; transform: translateY(-1px); }
.orden-bar__select {
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
  background: var(--superficie);
  color: var(--tinta);
}

/* ---------- Chips de color (Vista Rápida) ---------- */
.filtros-bar__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.filtros-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 260px;
}
.filtros-bar__chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  cursor: pointer;
  background: var(--crema);
}
.filtros-bar__chip input { accent-color: var(--fucsia); cursor: pointer; }

/* ---------- Badge de agotado ---------- */
.producto-card__promo-badge--agotado {
  background: var(--tinta-suave);
  box-shadow: none;
}
.producto-card__add:disabled {
  background: var(--tinta-suave);
  cursor: not-allowed;
}

/* ---------- Botón flotante de Roto (WhatsApp) ---------- */
.roto-flotante {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 55;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.roto-flotante--oculto {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
}

.roto-flotante__globo {
  background: var(--superficie);
  color: var(--tinta);
  padding: 0.7rem 1rem;
  border-radius: 16px 16px 4px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 190px;
  box-shadow: var(--sombra);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.roto-flotante:hover .roto-flotante__globo,
.roto-flotante.mostrar-globo .roto-flotante__globo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.roto-flotante__boton {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--amarillo);
  box-shadow: 0 14px 30px rgba(74, 63, 61, 0.24);
  border: 3px solid var(--superficie);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  display: block;
}
.roto-flotante__boton:hover { transform: scale(1.06); }
.roto-flotante__boton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.roto-flotante__boton--icono {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-wpp);
  animation: pulso-anillo 2.4s ease-out infinite;
}
.roto-flotante:hover .roto-flotante__boton--icono { animation-play-state: paused; }

/* ---------- Feed de Instagram ---------- */
.instagram-feed {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}
.instagram-feed__titulo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.4rem;
}
.instagram-feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}
.instagram-feed__item {
  display: block;
  border-radius: var(--radio-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.instagram-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.instagram-feed__item:hover img { transform: scale(1.06); }

/* ---------- Vista Rápida (Quick View) ---------- */
.quick-view {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--superficie);
  border-radius: var(--radio);
  width: min(760px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 71;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quick-view.abierto {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.quick-view__cerrar {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(74, 63, 61,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2;
}

.quick-view__carrusel {
  position: relative;
  background: var(--lavanda);
}
.quick-view__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.quick-view__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.quick-view__nav--prev { left: 0.7rem; }
.quick-view__nav--next { right: 0.7rem; }
.quick-view__dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}
.quick-view__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}
.quick-view__dot.activo { background: white; }

.quick-view__info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.quick-view__promo { position: static; display: inline-block; width: fit-content; }
.quick-view__agotado {
  display: inline-block;
  width: fit-content;
  background: var(--tinta-suave);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.quick-view__promo[hidden], .quick-view__agotado[hidden] { display: none; }
.quick-view__nombre {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}
.quick-view__precio {
  font-weight: 700;
  color: var(--fucsia);
  font-size: 1.1rem;
}
.quick-view__desc {
  color: var(--tinta-suave);
  font-size: 0.9rem;
  line-height: 1.5;
}
.quick-view__opcion { display: flex; flex-direction: column; gap: 0.4rem; }
.quick-view__cantidad {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.quick-view__cantidad button {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  cursor: pointer;
  font-size: 1rem;
}
.quick-view__cantidad span {
  font-weight: 700;
  min-width: 1.2rem;
  text-align: center;
}

/* ---------- Vista rápida: swatches de color ---------- */
.quick-view__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-view__swatch {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--borde);
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.quick-view__swatch img { width: 100%; height: 100%; object-fit: cover; }
.quick-view__swatch.activo { border-color: var(--fucsia); }
.quick-view__swatch-nombre {
  font-size: 0.78rem;
  color: var(--tinta-suave);
  margin-top: 0.3rem;
}

@media (max-width: 900px) {
  .quick-view { grid-template-columns: 1fr; }
  .quick-view__img { min-height: 220px; }
}

/* =========================================================
   Guía de tallas
   ========================================================= */
.tallas-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--superficie);
  border-radius: var(--radio);
  border: 3px solid var(--amarillo);
  width: min(600px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  z-index: 71;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  padding: 2rem 1.6rem 1.6rem;
}
.tallas-modal.abierto {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.tallas-modal__titulo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  text-align: center;
}
.tallas-modal__intro {
  color: var(--tinta-suave);
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 1.2rem;
}
.tallas-modal__scroll { overflow-x: auto; }
.tallas-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}
.tallas-tabla th,
.tallas-tabla td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--borde);
}
.tallas-tabla th {
  font-family: var(--font-display);
  color: var(--fucsia-oscuro);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tallas-tabla tr:nth-child(even) { background: var(--crema); }

@media (max-width: 640px) {
  .hero { padding: 3.2rem 1.2rem 3.5rem; }
  .roto-flotante { right: 1rem; bottom: 1rem; }
  .roto-flotante__boton { width: 66px; height: 66px; }
  .roto-flotante__globo { max-width: 150px; font-size: 0.75rem; }
  .filtros-bar__chips { max-width: 100%; }
}

/* =========================================================
   Guirnalda de globitos pastel colgando de un hilo, con un leve
   rebote (debajo de la barra de navegación) — reemplaza los
   banderines de papel picado por algo más tierno.
   ========================================================= */
.banderitas {
  position: relative;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding-top: 10px;
  overflow: hidden;
  background: var(--crema);
}
.banderitas::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tinta);
  opacity: 0.15;
  border-radius: 2px;
}
.bandera {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform-origin: top center;
  animation: bandera-rebote 2.4s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(74, 63, 61, 0.15);
}
.bandera:nth-child(5n+1) { background: var(--amarillo); }
.bandera:nth-child(5n+2) { background: var(--fucsia); }
.bandera:nth-child(5n+3) { background: var(--rosa); }
.bandera:nth-child(5n+4) { background: var(--verde-pluma); }
.bandera:nth-child(5n+5) { background: var(--azul); }
.bandera:nth-child(odd) { animation-delay: -1.2s; }
.bandera:nth-child(3n) { animation-duration: 3s; }

@keyframes bandera-rebote {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(6px) scale(0.92); }
}

/* =========================================================
   Aviso de sitio en construcción — ventana emergente (popup) con
   fondo oscurecido, en vez de una barra fija arriba de todo.
   (temporal — editable/desactivable desde el admin, pestaña
   "Diseño y contenido")
   ========================================================= */
/* =========================================================
   Banner de temporada (editable desde el admin): Navidad,
   Halloween, Día del Niño, rebajas, etc.
   ========================================================= */
.banner-temporada {
  background: linear-gradient(90deg, var(--fucsia), var(--fucsia-oscuro));
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.aviso-construccion {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(74, 63, 61, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: desplegar 0.2s ease;
}
.aviso-construccion__tarjeta {
  position: relative;
  background: var(--superficie);
  border: 4px solid var(--amarillo);
  border-radius: calc(var(--radio) * 1.2);
  box-shadow: var(--sombra-fuerte);
  max-width: 420px;
  padding: 2.2rem 1.8rem 1.6rem;
  text-align: center;
}
.aviso-construccion__icono {
  display: inline-block;
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  animation: rebotar 1.8s ease-in-out infinite;
}
.aviso-construccion p {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tinta);
}
.aviso-construccion__cerrar {
  background: var(--fucsia);
  border: 3px solid #fff;
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 10px 22px rgba(232, 98, 143, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.aviso-construccion__cerrar:hover {
  background: var(--fucsia-oscuro);
  transform: translateY(-2px) scale(1.03);
}

/* =========================================================
   Ticker de mensajes informativos (editable desde el admin) —
   franja clara tipo caramelo, debajo del hero (no fija/sticky)
   ========================================================= */
.ticker {
  background: repeating-linear-gradient(
    -45deg,
    var(--lavanda) 0px, var(--lavanda) 26px,
    var(--superficie) 26px, var(--superficie) 52px
  );
  border-top: 3px dotted var(--borde);
  border-bottom: 3px dotted var(--borde);
  color: var(--tinta);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
}
.ticker__track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-desplazar 28s linear infinite;
  padding-left: 100%;
}
.ticker__item {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fucsia-oscuro);
  display: inline-flex;
  align-items: center;
}
@keyframes ticker-desplazar {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =========================================================
   Confeti animado flotando en el hero
   ========================================================= */
.hero__confeti {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.85;
  animation: confeti-flotar 6s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(74, 63, 61,0.15));
}
.hero__confeti--1 { top: 8%;  left: 4%;  animation-delay: 0s; }
.hero__confeti--2 { top: 18%; right: 6%; animation-delay: 1.2s; font-size: 2.1rem; }
.hero__confeti--3 { bottom: 14%; left: 8%; animation-delay: 2.1s; font-size: 1.5rem; }
.hero__confeti--4 { bottom: 22%; right: 10%; animation-delay: 0.7s; }
@keyframes confeti-flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}
@media (max-width: 900px) {
  .hero__confeti--2, .hero__confeti--4 { display: none; }
}

/* =========================================================
   Carrusel de imágenes del hero (editable, avance automático)
   ========================================================= */
.hero-carrusel {
  position: relative;
  max-width: 560px;
  margin: 3rem auto 3rem;
  padding: 0 1.5rem;
}
.hero-carrusel__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  background: var(--lavanda);
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.hero-carrusel__viewport::-webkit-scrollbar { display: none; }
.hero-carrusel__track {
  display: flex;
  width: 100%;
}
.hero-carrusel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  display: block;
}
.hero-carrusel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--lavanda);
}
.hero-carrusel__flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--superficie);
  color: var(--tinta);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carrusel__flecha--prev { left: 0.4rem; }
.hero-carrusel__flecha--next { right: 0.4rem; }
.hero-carrusel__flecha:hover { background: var(--lavanda); }
.hero-carrusel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.hero-carrusel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--borde);
  cursor: pointer;
  padding: 0;
}
.hero-carrusel__dot.activo { background: var(--fucsia); }

/* =========================================================
   Ofertas imperdibles (carrusel de productos en promoción)
   ========================================================= */
.promo-carrusel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.4rem;
}
.promo-carrusel__titulo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 1.4rem;
  color: var(--fucsia);
}
.promo-carrusel__row {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.9rem 0.6rem 0.6rem;
  margin: -0.9rem -0.6rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.promo-carrusel__row::-webkit-scrollbar { display: none; }
.promo-carrusel__row .producto-card {
  scroll-snap-align: start;
  flex: 0 0 240px;
}

/* =========================================================
   Nuestra historia
   ========================================================= */
.historia {
  max-width: 760px;
  margin: 1.5rem auto 2.5rem;
  padding: 2.4rem 1.8rem;
  text-align: center;
  background: var(--superficie);
  border: 3px solid var(--borde);
  border-radius: calc(var(--radio) * 1.4);
}
.historia__icono {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.historia__titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--tinta);
}
.historia__texto {
  color: var(--tinta-suave);
  line-height: 1.65;
  margin: 0;
}
.historia__video {
  max-width: 480px;
  margin: 1.4rem auto 0;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 16 / 9;
  background: var(--tinta);
}
.historia__video.emprende__video--vertical {
  max-width: 260px;
  aspect-ratio: 9 / 16;
}
.historia__video iframe,
.historia__video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* =========================================================
   Preguntas frecuentes
   ========================================================= */
.faq {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.faq__titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.4rem;
  color: var(--tinta);
}
.faq__item {
  background: var(--superficie);
  border: 2px solid var(--borde);
  border-radius: var(--radio-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq__pregunta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tinta);
  cursor: pointer;
}
.faq__flecha {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--fucsia);
}
.faq__pregunta--activa .faq__flecha { transform: rotate(180deg); }
.faq__pregunta--activa { color: var(--fucsia-oscuro); }
.faq__respuesta {
  padding: 0 1.2rem 1.1rem;
  color: var(--tinta-suave);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* =========================================================
   Visítanos: dirección + mapa
   ========================================================= */
.visitanos {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
}
.visitanos__titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 0.4rem;
  color: var(--tinta);
}
.visitanos__intro {
  text-align: center;
  color: var(--tinta-suave);
  margin: 0 0 1.6rem;
}
.visitanos__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.6rem;
  align-items: stretch;
}
.visitanos__info {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.6rem;
}
.visitanos__etiqueta {
  font-weight: 700;
  color: var(--fucsia);
  margin: 1rem 0 0.2rem;
}
.visitanos__etiqueta:first-child { margin-top: 0; }
.visitanos__mapa {
  border-radius: var(--radio);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--sombra);
}
.visitanos__mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: none;
  display: block;
}

@media (max-width: 800px) {
  .visitanos__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-carrusel { max-width: 100%; padding: 0 0.6rem; }
}

/* ---------- Centrado de carruseles en escritorio ---------- */
@media (min-width: 900px) {
  .promo-carrusel__row {
    justify-content: center;
  }
}
