/* CSS personalizado para el Catálogo Interactivo - Andreina Lemon Cake */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables de diseño - Paleta de colores cálidos y repostería */
:root {
  --color-bakery-bg: #FCF7F2;      /* Crema suave */
  --color-bakery-primary: #8C6239; /* Marrón pastel / Chocolate */
  --color-bakery-accent: #D2B48C;  /* Color del banner / Bronce-Tan */
  --color-bakery-soft: #F5E6D3;    /* Crema claro */
  --color-text-dark: #4A3E3D;      /* Marrón oscuro para texto */
  --color-text-muted: #8A7B77;    /* Gris cálido */
  --color-whatsapp: #25D366;       /* Verde oficial de WhatsApp */
  --color-whatsapp-hover: #20BA5A; /* Verde oscuro */
  --card-shadow: 0 10px 30px rgba(140, 98, 57, 0.08);
  --card-shadow-hover: 0 20px 40px rgba(140, 98, 57, 0.15);
}

.catalogo-section {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-dark);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px 80px 15px;
  box-sizing: border-box;
}

.catalogo-section h1, .catalogo-section h2, .catalogo-section h3 {
  font-family: 'Playfair Display', serif;
  color: var(--color-bakery-primary);
  font-weight: 700;
}

/* Buscador y Controles */
.catalog-controls {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(210, 180, 140, 0.3);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(140, 98, 57, 0.05);
}

.search-box-wrapper {
  position: relative;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  font-size: 1.6rem;
  border: 2px solid rgba(210, 180, 140, 0.4);
  border-radius: 30px;
  background: white;
  color: var(--color-text-dark);
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.search-input:focus {
  border-color: var(--color-bakery-primary);
  box-shadow: 0 0 10px rgba(140, 98, 57, 0.15);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-bakery-primary);
  font-size: 1.8rem;
  pointer-events: none;
}

/* Pestañas de categorías */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.filter-tab {
  background: white;
  border: 1px solid rgba(210, 180, 140, 0.4);
  color: var(--color-text-dark);
  padding: 10px 24px;
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  font-family: 'Poppins', sans-serif;
}

.filter-tab:hover {
  background: var(--color-bakery-soft);
  border-color: var(--color-bakery-accent);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--color-bakery-primary);
  border-color: var(--color-bakery-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(140, 98, 57, 0.2);
}

/* Grid de Productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 20px;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(210, 180, 140, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 1;
  transform: scale(1);
}

.product-card.hidden {
  display: none !important;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.product-image-container {
  position: relative;
  padding-bottom: 75%; /* Ratio 4:3 */
  overflow: hidden;
  background-color: var(--color-bakery-soft);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--color-bakery-primary);
  padding: 6px 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenido de la Tarjeta */
.product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 2.0rem;
  margin: 0 0 10px 0;
  line-height: 1.3em;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--color-bakery-primary);
}

.product-description {
  font-size: 1.35rem;
  line-height: 1.5em;
  color: var(--color-text-muted);
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(210, 180, 140, 0.15);
}

.product-price {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-bakery-primary);
  font-family: 'Playfair Display', serif;
}

.product-price small {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 3px;
  font-family: 'Poppins', sans-serif;
}

/* Botón de WhatsApp */
.btn-whatsapp-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-whatsapp);
  color: white !important;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-order:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-order i {
  font-size: 1.5rem;
}

/* Estado sin resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: white;
  border-radius: 20px;
  border: 1px dashed rgba(210, 180, 140, 0.4);
  display: none;
}

.no-results i {
  font-size: 4rem;
  color: var(--color-bakery-accent);
  margin-bottom: 15px;
}

.no-results p {
  font-size: 1.6rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Botón Flotante de WhatsApp */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none !important;
}

.whatsapp-floating-btn:hover {
  background-color: var(--color-whatsapp-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Estilos específicos para la sección Teaser en Homepage */
.teaser-catalogo-container {
  padding: 20px 0;
}

.teaser-subtitle {
  text-align: center;
  font-size: 1.6rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.teaser-cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.btn-teaser-cta {
  display: inline-block;
  background: var(--color-bakery-primary);
  color: white !important;
  padding: 14px 35px;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(140, 98, 57, 0.15);
  transition: all 0.3s ease;
}

.btn-teaser-cta:hover {
  background: var(--color-bakery-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(140, 98, 57, 0.25);
}

/* Responsividad */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  .catalogo-section {
    padding: 10px 10px 60px 10px;
  }
  .catalog-controls {
    padding: 15px;
    border-radius: 15px;
  }
  .filter-tab {
    padding: 8px 18px;
    font-size: 1.3rem;
  }
  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 2.6rem;
  }
}

/* Banner de Políticas de Pedidos */
.catalog-policy-banner {
  background: rgba(253, 246, 239, 0.95);
  border: 1px solid rgba(210, 180, 140, 0.4);
  border-left: 5px solid var(--color-bakery-accent);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(140, 98, 57, 0.03);
}

.catalog-policy-icon {
  font-size: 2.2rem;
  color: var(--color-bakery-primary);
  flex-shrink: 0;
}

.catalog-policy-text {
  font-size: 1.35rem;
  line-height: 1.5em;
  color: var(--color-text-dark);
  margin: 0;
}

.catalog-policy-text strong {
  color: var(--color-bakery-primary);
  font-weight: 600;
}

.teaser-policy-note {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-top: -25px;
  margin-bottom: 35px;
  font-style: italic;
}

