/* ============================================= */
/* ESTILOS GENERALES Y VARIABLES                 */
/* ============================================= */
:root {
    /* Paleta de colores inspirada en el folleto */
    --color-primario: #006400; /* Verde oscuro para textos y títulos */
    --color-secundario: #f0e68c; /* Amarillo claro para fondos y detalles */
    --color-acento: #ff8c00;   /* Naranja para botones y llamadas a la acción */
    --color-fondo: #ffffff;    /* Blanco */
    --color-texto: #333333;    /* Gris oscuro para el texto principal */
    
    /* Tipografías */
    --fuente-titulos: 'Roboto', sans-serif;
    --fuente-cuerpo: 'Lato', sans-serif;
}

/* Reseteo básico para consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Desplazamiento suave al hacer clic en los enlaces del menú */
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
}

/* Contenedor principal para centrar contenido */
.contenedor, .contenedor-flexible {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.contenedor-flexible {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

h1, h2, h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    padding-top: 40px;
}

.subtitulo-seccion {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #666;
}

/* ============================================= */
/* ENCABEZADO Y NAVEGACIÓN                       */
/* ============================================= */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo img {
    height: 50px; /* Ajusta el tamaño de tu logo */
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: var(--color-primario);
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--color-acento);
}

/* ============================================= */
/* SECCIÓN PRINCIPAL (HERO)                      */
/* ============================================= */
.hero-section {
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Superposición oscura para mejorar la legibilidad del texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-contenido {
    position: relative; /* Para que esté por encima de la superposición */
    z-index: 1;
    max-width: 800px;
}

.hero-contenido h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.hero-contenido .slogan {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-secundario);
    margin-bottom: 20px;
}

.hero-contenido p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.boton-principal {
    background-color: var(--color-acento);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.boton-principal:hover {
    background-color: #e67e00; /* Un naranja un poco más oscuro */
}


/* ============================================= */
/* ESTILOS DE SECCIONES GENÉRICAS                */
/* ============================================= */
.seccion-general {
    padding: 80px 20px;
}

.seccion-alterna {
    padding: 80px 20px;
    background-color: #f9f9f9; /* Un gris muy claro para variar el fondo */
}

/* Estructura de dos columnas (texto e imagen) */
#quienes-somos .contenedor {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Para que se adapte en móviles */
}

.columna-texto, .columna-imagen {
    flex: 1; /* Ambas columnas ocupan el mismo espacio */
    min-width: 300px; /* Ancho mínimo antes de que se apilen */
}

.columna-imagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ============================================= */
/* MISIÓN Y VISIÓN                               */
/* ============================================= */
.tarjeta-mision-vision {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.tarjeta-mision-vision .icono {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* ============================================= */
/* SECCIÓN DE PRODUCTOS                          */
/* ============================================= */
.grid-productos {
    display: grid;
    /* Crea 4 columnas en escritorio, 2 en tablet y 1 en móvil */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tarjeta-producto {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* Para que la imagen no se salga del borde redondeado */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tarjeta-producto img {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes de producto */
    object-fit: contain; /* 'contain' para que la imagen se vea completa sin deformarse */
    background-color: #f5f5f5;
    padding: 10px;
}

.tarjeta-producto h3 {
    margin-top: 20px;
    color: var(--color-primario);
}

.categoria-producto {
    display: inline-block;
    background-color: var(--color-secundario);
    color: var(--color-primario);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.tarjeta-producto p {
    padding: 0 20px 20px 20px;
    font-size: 0.9rem;
}


/* ============================================= */
/* SECCIÓN DE CONTACTO                           */
/* ============================================= */
.info-contacto {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.numeros-contacto {
    margin: 20px 0;
    font-size: 1.3rem;
}

.numeros-contacto a {
    text-decoration: none;
    color: var(--color-acento);
    font-weight: bold;
}

.numeros-contacto a:hover {
    text-decoration: underline;
}

/* ============================================= */
/* PIE DE PÁGINA                                 */
/* ============================================= */
.footer {
    background-color: var(--color-primario);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ============================================= */
/* ADAPTACIÓN PARA DISPOSITIVOS MÓVILES (Responsive) */
/* ============================================= */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero-contenido h1 {
        font-size: 2.5rem;
    }
    
    .hero-contenido .slogan {
        font-size: 1.5rem;
    }

    /* Oculta el menú principal y muestra un ícono de hamburguesa (simplificado) */
    .menu {
        display: none; /* Simplificación, para una versión completa se necesitaría JS */
    }
    
    /* Apila las columnas una sobre otra */
    #quienes-somos .contenedor {
        flex-direction: column;
    }
}