:root {
  --amarillo-pastel: #dfbf85;
  --amarillo-suave: #f2ce85;
  --naranja-mostaza: #d79f49;
  --verde-oliva: #aca060;
  --texto-principal: #333333;
  --fondo-claro: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--texto-principal);
  background-color: var(--fondo-claro);
  line-height: 1.6;
  font-display: swap;
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--texto-principal);
  font-display: swap;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: var(--amarillo-pastel);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu li a {
  font-weight: 500;
  color: var(--texto-principal);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.menu li a:hover {
  color: var(--naranja-mostaza);
  background-color: rgba(215, 159, 73, 0.1);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(rgba(242, 206, 133, 0.3), rgba(242, 206, 133, 0.3)), url('img/planta.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: #000000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Secciones */
section {
  padding: 4rem 2rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.producto-card {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 320px;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.producto-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-secondary {
  background-color: #000000;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: var(--amarillo-pastel);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Estilos adicionales para compatibilidad con productos.html */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  width: 100%;
  font-size: 1rem;
}

.form-textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  width: 100%;
  font-size: 1rem;
  resize: vertical;
}

/* ================================
   ESTILOS PARA PÁGINA DE PRODUCTOS
   ================================ */

.productos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.filtros {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--naranja-mostaza);
  background: transparent;
  color: var(--naranja-mostaza);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filtro-btn.active,
.filtro-btn:hover {
  background: var(--naranja-mostaza);
  color: white;
}

.categoria-section {
  margin: 3rem 0;
}

.categoria-titulo {
  text-align: center;
  color: var(--naranja-mostaza);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.categoria-precio {
  text-align: center;
  font-size: 1.2rem;
  color: var(--texto-principal);
  margin-bottom: 2rem;
  font-weight: 500;
}

.producto-imagen {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--amarillo-suave);
}

.producto-info {
  padding: 1.5rem;
}

.producto-nombre {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--texto-principal);
}

.producto-descripcion {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.producto-precio {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--naranja-mostaza);
  margin-bottom: 1rem;
}

.producto-acciones {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cantidad-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  overflow: hidden;
}

.cantidad-btn {
  background: var(--verde-oliva);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cantidad-input {
  border: none;
  text-align: center;
  width: 50px;
  height: 35px;
  font-size: 1rem;
}

.btn-agregar-carrito {
  background: var(--naranja-mostaza);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  flex: 1;
  transition: background 0.3s ease;
}

.btn-agregar-carrito:hover {
  background: #c8871a;
}

.carrito-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--naranja-mostaza);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

.carrito-contador {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.carrito-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

.carrito-contenido {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.cerrar-carrito {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.carrito-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.carrito-item-imagen {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.carrito-item-info {
  flex: 1;
}

.carrito-item-nombre {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.carrito-item-precio {
  color: var(--naranja-mostaza);
  font-weight: 500;
}

.carrito-total {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--naranja-mostaza);
}

.paypal-buttons-container {
  margin-top: 1rem;
}

.loader {
  display: none;
  text-align: center;
  margin: 1rem 0;
}

.mensaje-estado {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  text-align: center;
}

.mensaje-exito {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mensaje-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.hidden {
  display: none;
}

/* ========================================
   ESTILOS PARA PÁGINA DE NUESTRA HISTORIA
   ======================================== */

.historia-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-historia {
  background: linear-gradient(135deg, var(--amarillo-suave), var(--amarillo-pastel));
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 1rem;
}

.hero-historia h1 {
  font-size: 2.5rem;
  color: var(--texto-principal);
  margin-bottom: 1rem;
  font-family: 'Merriweather', serif;
}

.hero-historia p {
  font-size: 1.2rem;
  color: var(--texto-principal);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.timeline-section {
  margin: 4rem 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--naranja-mostaza);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--naranja-mostaza);
  border: 4px solid white;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--verde-oliva);
}

.timeline-item.right .timeline-content {
  border-left: none;
  border-right: 4px solid var(--verde-oliva);
}

.timeline-year {
  color: var(--naranja-mostaza);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: var(--texto-principal);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Merriweather', serif;
}

.timeline-text {
  color: #666;
  line-height: 1.6;
}

.valores-section {
  background: rgba(255, 248, 220, 0.3);
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 1rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.valor-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-5px);
}

.valor-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.valor-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--naranja-mostaza);
  margin-bottom: 1rem;
  font-family: 'Merriweather', serif;
}

.valor-description {
  color: #666;
  line-height: 1.6;
}

.mision-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}

.mision, .vision {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-top: 4px solid var(--verde-oliva);
}

.mision h3, .vision h3 {
  color: var(--naranja-mostaza);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Merriweather', serif;
  text-align: center;
}

.mision p, .vision p {
  color: var(--texto-principal);
  line-height: 1.7;
  font-size: 1.1rem;
  text-align: justify;
}

.compromiso-section {
  background: linear-gradient(135deg, var(--verde-oliva), #8a9548);
  color: white;
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 1rem;
  text-align: center;
}

.compromiso-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: 'Merriweather', serif;
}

.compromiso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.compromiso-item {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

.compromiso-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-section {
  margin: 4rem 0;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.team-member {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--amarillo-suave);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--texto-principal);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--naranja-mostaza);
  margin-bottom: 0.5rem;
  font-family: 'Merriweather', serif;
}

.team-role {
  color: var(--verde-oliva);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-description {
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ========================================
   MEDIA QUERIES RESPONSIVAS
   ======================================== */

@media (max-width: 768px) {
  /* Header responsivo */
  header {
    padding: 0.75rem 1rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .menu li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Productos responsivo */
  .productos-container {
    padding: 1rem;
  }
  
  .filtros {
    flex-direction: column;
    align-items: center;
  }
  
  .producto-acciones {
    flex-direction: column;
    gap: 1rem;
  }
  
  .carrito-contenido {
    width: 95%;
    padding: 1.5rem;
  }
  
  /* Historia responsivo */
  .historia-container {
    padding: 1rem;
  }
  
  .hero-historia h1 {
    font-size: 2rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.right {
    left: 0%;
  }
  
  .timeline-item::after,
  .timeline-item.right::after {
    left: 21px;
  }
  
  .mision-vision {
    grid-template-columns: 1fr;
  }
  
  .compromiso-grid {
    grid-template-columns: 1fr;
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  background-image: url('icons/whatsapp.png');
  background-size: 32px 32px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Estilos para los botones de puntos de venta */
#show-all-stores:hover, #show-supermarkets:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Estilos adicionales para formularios y páginas, ok */
.form-section {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.form-section:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
