/* ================== RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f7f7f7;
  font-family: 'Manrope', sans-serif;
  line-height: 1.7;
  font-size: 16px;
  color: #333;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

img { width: 100%; height: auto; display: block; }

/* ================== HEADER ================== */

/* --- HEADER --- */
.main-header {
  background: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid #eee;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 15px;
}

.brand-logo {
  font-weight: 800;
  font-size: 1rem;
  color: red;
}
.search-bar {
  flex: 1;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.search-bar:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 68, 31, 0.2);
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  padding-left: 10px;
  font-size: 0.9rem;
}

.header-icons { display: flex; gap: 5px; }

.menu-btn, .icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  transition: 0.2s;
}

.menu-btn:hover, .icon-btn:hover { background: #fff0ed; color: var(--primary); }

/* --- SIDE MENU --- */
.side-menu {
  position: fixed;
  top: 0;
  left: -320px; /* Escondido */
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}

/* Clase que activa el menú */
.side-menu.show {
  transform: translateX(320px);
}

.side-menu-header {
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f9f9f9;
}

.close-btn { background: none; border: none; cursor: pointer; }

.menu-list { list-style: none; padding: 20px; margin: 0; }

.menu-list li a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: 0.2s;
}

.menu-list li a:hover { background: #fafafa; color: var(--primary); }

.menu-divider { border: 0; border-top: 1px solid #eee; margin: 15px 0; }

/* --- OVERLAY --- */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.show {
  display: block;
  opacity: 1;
}




/* ================== HERO ================== */
.hero {
  background: #ffffff; /* Fondo blanco puro para máxima claridad */
  padding: 80px 20px;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Badge superior sutil */
.hero-badge {
  display: inline-block;
  background: #fff0ed; /* Naranja muy suave */
  color: #8ab152;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 4rem; /* Título grande y audaz */
  line-height: 1;
  color: #1d1d1d;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: -2px;
}

.hero h1 .color {
  color: #8ab152;
}

.hero-text-wrapper p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 480px;
}

/* Botones con estilo moderno */
.hero-buttons { 
  display: flex; 
  gap: 15px; 
}

.btn {
  padding: 18px 35px;
  border-radius: 14px; /* Estilo UI de App moderna */
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn.primary { 
  background: #8ab152; 
  color: #fff; 
}

.btn.secondary { 
  background: #f7f7f7;
  color: #333; 
}

.btn:hover {
  transform: translateY(-3px);
}
/* Imagen con contenedor decorativo */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Círculo de fondo sutil detrás de la imagen */
.hero-image::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, #fff0ed 0%, transparent 70%);
  z-index: 1;
  top: -10%;
}

.hero-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 550px;
  border-radius: 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero h1 { font-size: 3rem; }
  .hero-buttons { justify-content: center; }
  .hero-text-wrapper p { margin: 0 auto 35px auto; }
}
/* ================== PRODUCTS ================== */

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1d1d1d;
}
.section-title span {
  color: #8ab152;
}

/* Sección general */
.products-section {
  padding: 60px 20px;
  background: #fff;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Grid optimizado */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Tarjetas un poco más compactas */
  gap: 25px;
  margin-top: 40px;
}

/* Tarjeta Estilo App */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #f2f2f2; /* Borde sutil en lugar de sombra pesada */
}
/* ::after como badge superior */
/* Aseguramos que la tarjeta sea el punto de referencia */
.product-card {
  position: relative; /* Indispensable para que el badge se posicione bien */
}

/* Badge para los primeros 3 (DESTACADO) */
.product-card:nth-child(1)::after,
.product-card:nth-child(2)::after,
.product-card:nth-child(3)::after {
  content: "DESTACADO";
  position: absolute;
  top: 15px;
  left: -8px; /* Sobresale un poco a la izquierda */
  background: #8ab152;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Badge para los otros 3 (GOURMET) */
.product-card:nth-child(4)::after,
.product-card:nth-child(5)::after,
.product-card:nth-child(6)::after {
  content: "GOURMET";
  position: absolute;
  top: 15px;
  left: -8px;
  background: #222; /* Negro elegante */
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Ajuste opcional: para que el badge no se corte si el contenedor tiene overflow hidden */
.products-section {
  overflow: visible; 
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
}

/* Contenedor de Imagen */
.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f9f9f9;
  border-radius: 1em;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Info del Producto */
.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column; /* Cambiado a columna para mejor lectura */
  gap: 8px;
  position: relative;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.rating {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1d1d1d;
}
/* Botón de Agregar (El toque Rappi) */
.add-btn {
  background: #fff;
  border: 1px solid #8ab152;
  color: #8ab152;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.add-btn:hover {
  background: #8ab152;
  color: #fff;
}
.add-btn span {
  font-size: 20px;
  font-weight: bold;
}

/* ================== STATS ================== */
/* Contenedor General */
.about-section.rappi-style {
  padding: 2em;
  background-color: #FFFFFF;
}
.rappi-card {
  background: #FFFFFF;
  border-radius: 1em;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
/* Elementos de la lista */
.accordion details {
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.3s ease;
}
.accordion details:last-child {
  border-bottom: none;
}
/* Encabezados (Summary) */
.accordion summary {
  padding: 20px 24px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #333;
  cursor: pointer;
}
/* Quitar la flecha por defecto de Chrome/Safari */
.accordion summary::-webkit-details-marker {
  display: none;
}
/* Icono de flecha animado */
.accordion summary span {
  color: #8ab152;
  transition: transform 0.3s ease;
}
.accordion details[open] summary span {
  transform: rotate(180deg);
}

/* Contenido del texto */
.details-content {
  padding: 0 24px 20px 24px;
  animation: fadeIn 0.4s ease-out;
}
.accordion p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}
/* Efecto Hover al pasar por cada opción */
.accordion details:hover {
  background-color: #fafafa;
}
/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------ FOOTER ------ */
.main-footer {
  padding: 2em;
  background: #0B0B0B;
  color: #FFFFFF;
  
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2em;
}
.contact {
  display: flex;
  gap: 2em;
}
.main-footer h2 {
  color: #FFFFFF;
}
/* Lista de contacto */
.contact-list { 
  list-style: none;
  
  display: flex;
  flex-direction: column;
  gap: .4em;
}
.contact-list a { 
  color: #888; 
  text-decoration: none; 
  transition: color 0.3s ease;
}
.contact-list .material-icons-outlined {
  color: #8ab152; /* Iconos en naranja */
  font-size: 1em;
  padding-right: .8em;
}
/* Botones sociales con efecto Topacio */
.social-links { 
  display: flex; 
  justify-content: center; 
  gap: .4em; 
}
.social-btn {
  width: 50px; 
  height: 50px;
  background: #1a1a1a; /* Gris muy oscuro para el botón */
  color: #8ab152;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border-radius: 4px; /* Bordes redondeados estilo App */
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-btn:hover {
  background: #8ab152;
  color: #fff;
  transform: translateY(-5px);
  /* Animación de Topacio / Glow */
  border-color: #8ab152;
}
/* Footer inferior / Derechos */
.derechos {
  padding-top: 1em; 
  border-top: 1px solid #1a1a1a; 
}
.derechos p {
  font-size: 0.85rem;
  color: #666;
}
.derechos span {
  font-weight: 600;
  color: #8ab152; /* Nombre de marca resaltado */
}
/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .stats-container { grid-template-columns: 1fr; }
  .divider { width: 50px; height: 2px; margin: auto; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}