/* =========================================================
   TIENDA EJEMPLO — Sistema de diseño (tienda online)
   Paleta (todo editable desde /desarrollador):
     --tinta                 #14131A  texto principal
     --tinta-suave           #6E6D7A  texto secundario
     --crema                 #F7F6FB  fondo claro general
     --superficie            #FFFFFF  fondo claro secundario (tarjetas)
     --borde                 #E7E4F3  bordes y separadores
     --fondo-oscuro          #14131A  fondo oscuro (header/footer/botón principal)
     --fondo-oscuro-secundario #232230  fondo oscuro secundario (overlays de modales)
     --violeta               #5B4FE0  acento principal (CTA, precios)
     --violeta-oscuro        #4638C2  hover del acento principal
     --lavanda               #EEEBFC  fondos suaves / chips
     --coral                 #FF5470  alertas / quitar / borrar
     --acento-terciario      #6B8F5C  categoría activa
   Tipografía:
     Display -> "Sora"   (titulares, geométrica y con carácter)
     Cuerpo  -> "Inter"  (UI, legibilidad)
   ========================================================= */

/* Las 4 combinaciones tipográficas seleccionables desde /desarrollador se
   cargan todas aquí, para poder cambiar de combo sin pedir red adicional. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&family=Work+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --tinta: #14131A;
  --tinta-suave: #6E6D7A;
  --crema: #F7F6FB;
  --superficie: #FFFFFF;
  --borde: #E7E4F3;
  --violeta: #5B4FE0;
  --violeta-oscuro: #4638C2;
  --lavanda: #EEEBFC;
  --coral: #FF5470;
  --coral-oscuro: #E23F5C;
  --verde-wpp: #25D366;

  /* Fondos oscuros: independientes del color de texto, para poder tener
     texto claro sobre fondo oscuro sin atarlos al mismo valor. */
  --fondo-oscuro: #14131A;
  --fondo-oscuro-secundario: #232230;
  /* Acento terciario: usado en elementos con su propio color de marca
     (ej: categoría activa), distinto del acento principal (CTA/precios). */
  --acento-terciario: #6B8F5C;

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

  --radio: 18px;
  --radio-sm: 12px;
  --sombra: 0 12px 32px color-mix(in srgb, var(--fondo-oscuro) 8%, transparent);
  --sombra-fuerte: 0 24px 60px color-mix(in srgb, var(--violeta) 22%, transparent);
  --sombra-cta: 0 14px 30px color-mix(in srgb, var(--violeta) 32%, transparent);
  --blob-primario: color-mix(in srgb, var(--violeta) 28%, transparent);
  --blob-secundario: color-mix(in srgb, var(--coral) 18%, transparent);
}

* { 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(--violeta);
}

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 251, 0.82);
  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.7rem;
  flex: 1;
  min-width: 0;
}

.brand__logo {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand__textos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
}

.brand__nombre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--tinta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__eslogan {
  font-size: 0.75rem;
  color: var(--tinta-suave);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__eslogan:empty,
.brand__eslogan[hidden] { display: none; }

.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(--violeta); color: var(--violeta); }
.icon-btn.activo {
  background: var(--fondo-oscuro);
  border-color: var(--fondo-oscuro);
  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(--violeta); }
.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 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 5rem;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero__blob--1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--blob-primario), transparent 70%);
  top: -180px;
  right: -120px;
}
.hero__blob--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--blob-secundario), transparent 70%);
  bottom: -160px;
  left: -100px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.hero__copy { max-width: 520px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0.7rem 0 1rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--tinta);
}

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

.hero__cta {
  display: inline-block;
  background: var(--violeta);
  color: white;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--sombra-cta);
  transition: background 0.15s ease, transform 0.1s ease;
}
.hero__cta:hover { background: var(--violeta-oscuro); transform: translateY(-1px); }

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

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--superficie);
  border: 1px solid var(--borde);
  color: var(--tinta);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--sombra);
}

.hero__inner--sin-visual {
  grid-template-columns: 1fr;
}
.hero__inner--sin-visual .hero__copy { max-width: 640px; }

/* ---- Visual flotante del hero (tarjeta de producto) ---- */
.hero__visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__float-card {
  position: absolute;
  background: var(--superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra-fuerte);
  overflow: hidden;
}

.hero__float-card--back {
  width: 200px;
  height: 260px;
  top: 6%;
  right: 4%;
  opacity: 0.55;
  transform: rotate(9deg);
  filter: saturate(0.85);
}
.hero__float-card--back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__float-card--front {
  width: 250px;
  padding-bottom: 0.9rem;
  left: 6%;
  bottom: 4%;
  transform: rotate(-6deg);
  animation: flotar 5s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-10px); }
}

.hero__float-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.hero__float-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--coral);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
}

.hero__float-info {
  padding: 0.7rem 0.9rem 0;
}

.hero__float-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.hero__float-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--violeta);
  font-size: 0.95rem;
}
.hero__float-price s {
  color: var(--tinta-suave);
  font-weight: 500;
  font-size: 0.78rem;
}

.hero__float-chip {
  position: absolute;
  bottom: -6px;
  right: 8%;
  background: var(--superficie);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--sombra);
  animation: flotar-chip 6s ease-in-out infinite;
}

@keyframes flotar-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Banner publicitario ---------- */
.banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.banner__link { display: block; }

.banner__img {
  width: 100%;
  height: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ---------- Nav de categorías ---------- */
.cat-nav {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: var(--crema);
  padding: 1.4rem 1.5rem 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
}

.cat-nav__row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  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(--acento-terciario);
  color: white;
  border-color: var(--acento-terciario);
}

/* ---------- Catálogo ---------- */
.menu-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5.5rem;
}

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

.menu-grid {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.3rem;
  margin-bottom: 2.6rem;
  padding-bottom: 0.6rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.producto-card {
  position: relative;
  background: var(--superficie);
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  scroll-snap-align: start;
  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(226, 63, 92, 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;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.producto-card__desc {
  font-size: 0.83rem;
  color: var(--tinta-suave);
  line-height: 1.45;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.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(--violeta);
  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(--fondo-oscuro);
  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(--violeta); }
.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(--fondo-oscuro);
  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 color-mix(in srgb, var(--fondo-oscuro) 28%, transparent);
  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-wpp);
  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: color-mix(in srgb, var(--fondo-oscuro-secundario) 70%, transparent);
  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(--fondo-oscuro);
  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__info { flex: 1; }

.comanda-item__nombre {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
}
.comanda-item__variante {
  font-weight: 500;
  color: var(--tinta-suave);
  font-size: 0.82rem;
}

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

.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(--violeta); color: var(--violeta); }

.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__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: 800;
  color: var(--violeta);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- Modal de datos ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--fondo-oscuro-secundario) 75%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
}
.modal-overlay.abierto { opacity: 1; pointer-events: auto; }

.modal-datos {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--crema);
  border-radius: var(--radio);
  width: min(420px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 71;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.modal-datos.abierto {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-datos__header {
  background: var(--fondo-oscuro);
  color: white;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radio) var(--radio) 0 0;
}
.modal-datos__header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}
.modal-datos__cerrar {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-datos__form {
  padding: 1.4rem;
}

.form-grupo {
  margin-bottom: 1.1rem;
}
.form-grupo label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--tinta);
}
.form-grupo input[type="text"],
.form-grupo input[type="email"],
.form-grupo input[type="tel"],
.form-grupo textarea {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 0.65rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--superficie);
  color: var(--tinta);
}
.form-grupo input[type="text"]:focus,
.form-grupo input[type="tel"]:focus,
.form-grupo textarea:focus {
  outline: 2px solid var(--violeta);
  outline-offset: 1px;
}
.form-grupo textarea {
  resize: vertical;
  min-height: 70px;
}

.form-grupo--check {
  margin-bottom: 1.4rem;
}
.check-label-cliente {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--tinta-suave);
}
.check-label-cliente input[type="checkbox"] {
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: var(--violeta);
  flex-shrink: 0;
}

.radio-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  transition: all 0.15s ease;
}
.radio-label:hover {
  background: var(--lavanda);
  border-color: var(--violeta);
}
.radio-label input[type="radio"] {
  cursor: pointer;
  accent-color: var(--violeta);
}

.form-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn-confirmar {
  background: var(--violeta);
  color: white;
  border: none;
  border-radius: var(--radio-sm);
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-confirmar:hover { background: var(--violeta-oscuro); }

.btn-cancelar {
  background: var(--lavanda);
  color: var(--tinta);
  border: none;
  border-radius: var(--radio-sm);
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-cancelar:hover { background: #E1DCF9; }

/* ---------- Footer ---------- */
.footer {
  background: var(--fondo-oscuro);
  color: #A7A5B5;
  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; }

/* ---------- 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(--violeta);
  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; }

/* ---------- Ordenar catálogo (pequeño, sin ocupar espacio extra) ---------- */
.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 talla/color (usados en la 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: 220px;
}
.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(--violeta); 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 WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde-wpp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
  z-index: 55;
  transition: transform 0.15s ease;
}
.whatsapp-flotante:hover { transform: scale(1.06); }

/* ---------- 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: color-mix(in srgb, var(--fondo-oscuro-secundario) 85%, transparent);
  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(--violeta);
  font-size: 1.1rem;
}
.quick-view__desc {
  color: var(--tinta-suave);
  font-size: 0.9rem;
  line-height: 1.5;
}
.quick-view__no-disponible {
  color: var(--coral-oscuro);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}
.quick-view__opcion { display: flex; flex-direction: column; gap: 0.4rem; }
.quick-view__opcion[hidden] { display: none; }
.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;
}

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

@media (max-width: 640px) {
  .producto-card { flex-basis: min(72vw, 250px); }
  .hero { padding: 3.2rem 1.2rem 3.5rem; }
  .cat-nav { top: 62px; }
  .hero__float-card--back { display: none; }
  .hero__visual { height: 260px; }
  .hero__float-card--front { width: 210px; }
  .whatsapp-flotante { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
  .filtros-bar__chips { max-width: 100%; }

  .header { padding: 0.8rem 1rem; }
  .header__acciones { gap: 0.4rem; }
  .brand { gap: 0.5rem; }
  .brand__logo { height: 28px; width: 28px; }
  .brand__nombre { font-size: 1.05rem; }
  .brand__eslogan { font-size: 0.68rem; }
  .icon-btn { width: 2.3rem; height: 2.3rem; }
  .cart-btn { padding: 0.55rem 0.8rem; gap: 0.4rem; }
}

@media (max-width: 380px) {
  .cart-btn__texto { display: none; }
  .cart-btn { padding: 0.55rem 0.7rem; }
}
