/* SEÑOR TOPO — Estilos personalizados */

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #FFF7D9;
  color: #421818;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, p {
  text-wrap: balance;
}

.smooth-transition { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-shadow { box-shadow: 0 24px 48px -12px rgba(66, 24, 24, 0.12); }
.card-hover:hover { transform: translateY(-4px); }

/* Filtros activos */
.filtro-btn.active {
  background-color: #421818;
  color: white;
  border-color: #421818;
}

/* Producto oculto por filtro */
.producto-card.hidden-filter {
  display: none;
}

/* Filtro ferias activo */
.feria-btn.feria-active {
  background-color: #421818;
  color: white;
  border-color: #421818;
}

/* Filtro proteína activo */
.prot-btn.prot-active {
  background-color: #421818;
  color: white;
  border-color: #421818;
}

/* Botón de necesidad activo (sección "Por qué Señor Topo") */
.necesidad-btn.necesidad-active {
  background-color: #E2DD83;
  color: #421818;
  border-color: #E2DD83;
}

/* Toast carrito */
#toast-carrito {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 10000;
  opacity: 0;
  transform: translateX(-50%) translateY(-30px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#toast-carrito.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover {
  background-color: #20b858;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* Menú móvil */
#mobile-menu.open { display: flex; }
#menu-toggle.open #bar1 { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open #bar2 { opacity: 0; }
#menu-toggle.open #bar3 { transform: translateY(-8px) rotate(-45deg); }

/* Nav link activo */
nav a.active { color: #6B3430; font-weight: 700; }

/* Fade in al scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* HERO: en celular se ve Título -> Foto -> Información; en desktop vuelve al layout de 2 columnas */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "photo"
    "info";
}
.hero-text { display: contents; }
.hero-title { grid-area: title; }
.hero-photo { grid-area: photo; }
.hero-info { grid-area: info; }

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    grid-template-areas:
      "text photo";
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    grid-area: text;
  }
}
