/* =========================================================
   CARNAVAL DE LAS MEDIAS — Sistema de diseño (tienda online)
   Paleta (temática de carnaval, SIN fondos negros):
     --tinta       #2B1B3D  texto principal / fondos oscuros (berenjena, no negro)
     --tinta-suave #7A6C8C  texto secundario
     --crema       #FFF9EC  fondo general (crema cálido)
     --superficie  #FFFFFF  tarjetas
     --borde       #F2E4C6  bordes sutiles
     --amarillo    #FACF33  acento primario (marca, CTA, banderitas)
     --amarillo-osc#E0AF10  hover del amarillo
     --fucsia      #9B51E0  acento principal de marca (morado — precios, botones, promo)
     --fucsia-osc  #7C3AC4  hover del morado
     --rosa        #E91E8C  acento decorativo (confeti, banderitas, detalles vivos)
     --verde-pluma #3C9F5D  acento terciario (plumas, banderitas, detalles)
     --lavanda     #F3E8FC  fondos suaves / chips (tono morado clarito)
     --coral       #FF6B35  alertas / promo
   Tipografía:
     Display -> "Fredoka"  (titulares, redonda y festiva)
     Cuerpo  -> "Inter"    (UI, legibilidad)
   ========================================================= */

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

:root {
  --tinta: #2B1B3D;
  --tinta-suave: #7A6C8C;
  --crema: #FFF9EC;
  --superficie: #FFFFFF;
  --borde: #F2E4C6;
  --amarillo: #FACF33;
  --amarillo-oscuro: #E0AF10;
  --fucsia: #9B51E0;
  --fucsia-oscuro: #7C3AC4;
  --rosa: #E91E8C;
  --verde-pluma: #3C9F5D;
  --lavanda: #F3E8FC;
  --coral: #FF6B35;
  --coral-oscuro: #E0501C;
  --verde-wpp: #25D366;

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

  --radio: 18px;
  --radio-sm: 12px;
  --sombra: 0 12px 32px rgba(43, 27, 61, 0.10);
  --sombra-fuerte: 0 24px 60px rgba(155, 81, 224, 0.25);
}

* { box-sizing: border-box; }

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 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fucsia);
}

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: calc(var(--alto-aviso, 0px) + var(--alto-ticker, 0px));
  z-index: 40;
  background: rgba(255, 249, 236, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  padding: 1rem 1.5rem;
}

.header__row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.15;
}

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

.header__acciones {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  background: var(--superficie);
  border: 1px solid var(--borde);
  color: var(--tinta);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: var(--fucsia); color: var(--fucsia); }
.icon-btn.activo {
  background: var(--tinta);
  border-color: var(--tinta);
  color: white;
}

.cart-btn {
  position: relative;
  background: var(--tinta);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.15s ease, transform 0.1s ease;
}
.cart-btn:hover { background: var(--fucsia); }
.cart-btn:active { transform: scale(0.96); }

.cart-btn__badge {
  background: var(--coral);
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

/* ---------- Hero (banda amarilla de carnaval) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 5rem;
  background: var(--amarillo);
}

.hero__blob { display: none; }

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

.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(155,81,224,0.32);
  transition: background 0.15s ease, transform 0.1s ease;
}
.hero__cta:hover { background: var(--fucsia-oscuro); transform: translateY(-1px); }

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

/* ---- Botones "Quiero emprender" / "Quiero comprar pocas unidades" ---- */
.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.4rem 0 0.6rem;
}

.btn-emprender,
.btn-pocas {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn-emprender:hover,
.btn-pocas:hover { transform: translateY(-1px); filter: brightness(0.97); }

.btn-emprender {
  background: var(--verde-pluma);
  color: white;
  box-shadow: 0 10px 24px rgba(60,159,93,0.32);
}

.btn-pocas {
  background: var(--superficie);
  color: var(--tinta);
  border: 2px solid var(--tinta);
}

/* ---------- Sección "Emprende con nosotros" ---------- */
.emprende {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.emprende__titulo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.emprende__texto {
  color: var(--tinta-suave);
  max-width: 620px;
  margin: 0 auto 1.4rem;
}

/* ---------- Cotización mayorista ---------- */
.cotiza {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 2rem 1.6rem;
  background: var(--fucsia);
  border-radius: var(--radio);
  color: white;
  text-align: center;
}
.cotiza__titulo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}
.cotiza__texto { opacity: 0.9; margin: 0 0 1.2rem; font-size: 0.92rem; }
.cotiza__form {
  display: grid;
  gap: 0.8rem;
  text-align: left;
}
.cotiza__form input,
.cotiza__form textarea {
  width: 100%;
  border: none;
  border-radius: var(--radio-sm);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.cotiza__form button {
  background: var(--amarillo);
  color: var(--tinta);
  border: none;
  border-radius: 999px;
  padding: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cotiza__form button:hover { background: var(--amarillo-oscuro); }

/* ---------- 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: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.cat-pill.activa,
.cat-pill:hover {
  background: var(--fucsia);
  color: white;
  border-color: var(--fucsia);
}

/* ---------- Catálogo ---------- */
.menu-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5.5rem;
  scroll-margin-top: calc(var(--alto-aviso, 0px) + var(--alto-ticker, 0px) + 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-aviso, 0px) + var(--alto-ticker, 0px) + 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: flex;
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.6rem;
  margin-bottom: 2.6rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.menu-grid::-webkit-scrollbar { display: none; }
.menu-grid .producto-card {
  scroll-snap-align: start;
  flex: 0 0 240px;
}

.producto-card {
  position: relative;
  background: var(--superficie);
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
  border-color: transparent;
}

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

.producto-card__promo-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  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(224, 80, 28, 0.35);
  z-index: 2;
}

.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.1s ease;
  flex-shrink: 0;
}
.producto-card__add:hover { background: var(--fucsia); }
.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(43,27,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(43,27,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 {
  background: var(--tinta);
  color: #C9BEDA;
  padding: 2.6rem 1.5rem;
  font-size: 0.85rem;
}
.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.05rem;
  margin: 0 0 0.5rem;
}
.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-left: 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);
}

/* ---------- Ordenar catálogo ---------- */
.orden-bar {
  max-width: 1180px;
  margin: 0.6rem auto 0;
  padding: 0 1.5rem;
  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__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(43, 27, 61, 0.28);
  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;
}

/* ---------- 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(43,27,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; }
}

@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%; }
}

/* =========================================================
   Banderitas de papel picado: triángulos colgando de un hilo,
   con un leve balanceo (debajo de la barra de navegación)
   ========================================================= */
.banderitas {
  position: relative;
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  overflow: hidden;
  background: var(--crema);
}
.banderitas::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tinta);
  opacity: 0.18;
}
.bandera {
  width: 24px;
  height: 32px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: bandera-balanceo 3.2s ease-in-out infinite;
  flex-shrink: 0;
}
.bandera:nth-child(4n+1) { background: var(--amarillo); }
.bandera:nth-child(4n+2) { background: var(--fucsia); }
.bandera:nth-child(4n+3) { background: var(--rosa); }
.bandera:nth-child(4n+4) { background: var(--verde-pluma); }
.bandera:nth-child(odd) { animation-delay: -1.6s; }

@keyframes bandera-balanceo {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

/* =========================================================
   Aviso de sitio en construcción (temporal — editable/desactivable
   desde el admin, pestaña "Diseño y contenido")
   ========================================================= */
.aviso-construccion {
  position: sticky;
  top: 0;
  z-index: 42;
  background: var(--coral);
  color: #fff;
  padding: 0.65rem 2.6rem 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}
.aviso-construccion p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 900px;
}
.aviso-construccion__cerrar {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

/* =========================================================
   Ticker de mensajes informativos (editable desde el admin)
   ========================================================= */
.ticker {
  position: sticky;
  top: var(--alto-aviso, 0px);
  z-index: 41;
  background: var(--tinta);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.55rem 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: 600;
  letter-spacing: 0.02em;
  color: var(--amarillo);
  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(43,27,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;
  scroll-snap-type: x proximity;
  padding-bottom: 0.6rem;
  -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;
}

/* =========================================================
   Emprende: video incrustado
   ========================================================= */
.emprende__video {
  max-width: 640px;
  margin: 1.4rem auto;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 16 / 9;
  background: var(--tinta);
}
/* Video propio subido desde el admin: formato vertical, como una
   historia de celular (en vez del 16:9 horizontal de YouTube). */
.emprende__video--vertical {
  max-width: 300px;
  aspect-ratio: 9 / 16;
}
.emprende__video iframe,
.emprende__video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* =========================================================
   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;
  }
}
