/* ============================================================
   🌿 ESTILOS PARA PÁGINA DE INICIO
============================================================ */
:root {
  --verde-oscuro: #006634;
  --verde-claro: #7ED3A0;
  --amarillo-sol: #FFD700;
  --rojo-campoabrego: #C62828;
  --verde-pino: #1A4D2E;
  --fondo-suave: #F9F6F1;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--fondo-suave);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ============================================================
   🌾 NAVBAR
============================================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--verde-oscuro);
  padding: 10px 40px;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-links .active, .nav-btn.active {
  background-color: white !important;
  color: #C62828 !important;
  border: 2px solid white;
}

.nav-btn {
  text-decoration: none;
  color: white;
  border: 2px solid white;
  padding: 6px 18px;
  border-radius: 8px;
  font-weight: bold;
  background-color: transparent;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(.active) {
  background-color: #FFD700 !important;
  color: #006634 !important;
  border: 2px solid white;
}

/* ============================================================
   🌄 HERO / CARRUSEL
============================================================ */
.carousel-item img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center;
}

.carousel-inner {
  max-height: 100vh;
  overflow: hidden;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* ============================================================
   📦 PRODUCTOS
============================================================ */
.producto-img {
  width: 100%;
  height: 220px;            /* Altura uniforme */
  object-fit: cover;        /* Recorta manteniendo proporción */
  object-position: center;  /* Centrada */
  border-top-left-radius: 0; /* Asegura integración con card */
  border-top-right-radius: 0;
  display: block;
}
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.producto-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.producto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.producto-card .info {
  padding: 15px;
}

.producto-card h3 {
  margin: 0 0 10px 0;
  color: var(--verde-oscuro);
}

.producto-card .precio {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--verde-pino);
}
