/* ==========================================
   CONFIGURACIÓN GENERAL Y TRANSICIÓN DE COLOR
   ========================================== */
html {
  font-size: 16px;  
  /* Transición suave entre Verde Musgo y Gamas de Celestes/Azules */
  background: linear-gradient(135deg, #2d5a27 0%, #357a8a 50%, #1e3c72 100%);
  background-attachment: fixed;
  margin: 0;  
  scroll-behavior: smooth;
}

body {
  width: 100%;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding-top: 80px;
  box-sizing: border-box;
  color: #333;
}

/* ==========================================
   BARRA DE NAVEGACIÓN (HEADER)
   ========================================== */
.navbar-fija {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos bajen ordenadamente si no entran */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 114, 90, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 15px; /* Padding lateral más compacto para ganar espacio */
    box-shadow: 0 4px 20px rgba(10, 30, 60, 0.2);
    z-index: 1000;
}

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

.logo-container h1 {
    font-size: 1rem; /* Reducido ligeramente para evitar desbordes en pantallas chicas */
}

.logo-container img {
    border-radius: 8px;
    object-fit: cover;
}

.navbar-fija h1 {
    font-size: 1.2rem;
    color: #1e3c72;
    background: none;
}

.navbar-fija ul {
    list-style: none;
    display: flex;
    gap: 0.8rem; /* Espaciado ajustado entre los links para que entren holgados */
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-fija ul li a {
    font-size: 0.95rem; /* Letra un poco más compacta en el menú */
    color: #bbf5b4;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-fija ul li a:hover {
    background-color: #357a8a;
    color: white;
}

/* ==========================================
   SECCIONES Y CONTENEDORES PRINCIPALES
   ========================================== */
main.main-hero, .seccion-nosotros, .seccion-productos, .seccion-resenias {
    max-width: 1100px;
    margin: 2rem auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(14, 42, 71, 0.25);
}

.main-hero h2, .seccion-nosotros h2, .seccion-productos h2, .seccion-resenias h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    text-align: center;
    background: none;
    margin-bottom: 1rem;
}

.main-hero h3 {
    color: #2d5a27;
    font-size: 1.2rem;
    background: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.objetivo-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f0f7f4;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 5px solid #2d5a27;
}

.objetivo-box img {
    border-radius: 8px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.imagenes-equipo {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.imagenes-equipo img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-moderno {
    display: inline-block;
    background: linear-gradient(135deg, #357a8a, #2d5a27);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-moderno:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
}

.btn-equipo-container {
    text-align: center;
    margin-top: 20px;
}

/* ==========================================
   TARJETAS INTERACTIVAS (PRODUCTOS Y RESEÑAS)
   ========================================== */
#contenedorProductos, .resenias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.productosDetallados, .card {
    background: #ffffff;
    border-radius: 16px; /* Bordes redondeados */
    padding: 20px;
    text-align: center;
    /* Sombra inicial suave en azul oscuro */
    box-shadow: 0 6px 15px rgba(26, 54, 93, 0.15);
    border: 1px solid rgba(53, 122, 138, 0.2);
    /* Transición suave */
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Efecto Interactivo al Pasar el Mouse (Hover) */
.productosDetallados:hover, .card:hover {
    transform: translateY(-8px) scale(1.03);
    /* Sombra pronunciada en azul oscuro profundo */
    box-shadow: 0 16px 30px rgba(15, 32, 67, 0.4);
    border-color: #357a8a;
}

.productosDetallados img, .card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.productosDetallados:hover img, .card:hover img {
    transform: scale(1.08);
}

.card {
    position: relative;
    padding-top: 2.5rem;
}

.card img {
    position: absolute;
    top: -25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #357a8a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-nombre {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
}

.estrellas .fa-solid {
    color: #f1c40f;
    font-size: 0.9rem;
    margin: 0 2px;
}

/* ==========================================
   FOOTER MODERNO
   ========================================== */
.grid-contenedor-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  background: #1e3c72;
  color: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 1100px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#footerNav ul {
  list-style: none;
  padding: 0;
}

#footerNav ul li {
  margin-bottom: 10px;
}

#footerNav a, .footer-redes a, .footer-whatsapp a {
  text-decoration: none;
  color: #bce0ee;
  transition: color 0.2s ease;
}

#footerNav a:hover, .footer-redes a:hover, .footer-whatsapp a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-redes h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 10px;
  background: none;
}

.footer-copy {
  text-align: center;
  color: #d729ee;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.footer-copy strong {
  background: rgba(0,0,0,0.2);
  padding: 8px 15px;
  border-radius: 8px;
}

.img-pequena {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
}