/* =========== RESET BÁSICO Y ESTILOS GLOBALES =========== */
:root {
    /*--color-primary: #386641; /* Verde principal */
    --color-primary: #664288; 
    /*--color-secondary: #6A994E; /* Verde más claro */
    --color-secondary: #775398; 
    --color-light-green: #F2E8CF;
    /* Verde muy claro para fondos */
    --color-text: #333;
    --color-text-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --font-family-base: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: #fdfdfd;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* =========== CABECERA Y NAVEGACIÓN (Reutilizada) =========== */
.main-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ad8fc2;
    /*background-color: #7fb362; */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 125px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

/*.logo img {

    border-radius: 20%;
    width: 150px;
    position: relative
       
} */

.logo_1 img {

    width: 200px;
    position: relative;

}

.logo_2 img {

    width: 100px;
    position: relative;

}


.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}



.nav-desktop a {
    font-weight: 500;
    color: var(--color-text);
}

.nav-desktop a:hover {
    color: var(--color-primary);
}

.menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

.nav-mobile {
    display: none;
    background-color: var(--color-white);
    border-top: 1px solid #eee;
}

.nav-mobile.is-open {
    display: block;
}


.nav-mobile a {
    display: block;
    padding: 1rem 5%;
    /* 5% es el mismo margen que el container */
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-mobile a:hover {
    background-color: #f7f7f7;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    /* píldora */
    font-weight: 700;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* ========================================================== */
/* =========== INICIO: ESTILOS PÁGINA "SOBRE NOSOTROS" ======== */
/* ========================================================== */
.section {
    padding: 4rem 0;
}

.page-header-about {
    background: url('../img/nosotros_fondo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: var(--color-white);
    min-height: 400px;
}

.page-header-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-about h1 {
    font-size: 3rem;
    font-weight: 700;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.farm-section {
    background-color: var(--color-light-green);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-gray);
}

.farm-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}




/* --- NUEVO: Estilos para los videos en la galería --- */
.farm-gallery .farm-video {
    border-radius: 8px;
    width: 100%;
    height: 450px; /* Altura ajustada para formato vertical */
    object-fit: cover; /* Asegura que el video cubra el contenedor */
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.farm-gallery .farm-video:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.commitment-section {
    background-color: #f8f9fa;
}

.commitment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.commitment-item {
    opacity: 1; /* Habilitado por defecto si JS falla */
}

/* --- Estilos para centrar el div de registro sanitario --- */
.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.card {
    background-color: white;
    border-radius: 8px;
    max-width: 800px; 
    width: 90%;
}

.card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*----------------------------------------------------------------------*/





.farm-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.farm-gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.commitment-section {
    background-color: #f8f9fa;
}

.commitment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.commitment-item {
    opacity: 0;
    /* Oculto por defecto para la animación JS */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.commitment-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.commitment-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.commitment-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.commitment-item p {
    color: var(--color-gray);
}

/* --- INICIO: ESTILOS PARA LA SECCIÓN DE CERTIFICACIONES --- */
.certifications-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.certifications-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.certifications-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.certification-item {
    text-align: center;
}

.certification-item img {
    max-width: 80px;
    margin: 0 auto 0.5rem auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.certification-item:hover img {
    opacity: 1;
}

.certification-item span {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* --- FIN: ESTILOS PARA LA SECCIÓN DE CERTIFICACIONES --- */

.team-section {
    background-color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border: 5px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-card span {
    color: var(--color-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
}

.flex-container {
    display: flex;
    /* Activa el modelo de caja flexible (Flexbox) */

    /* Centrado Horizontal */
    justify-content: center;
    /* Alinea el contenido en el centro del eje principal (horizontal) */

    /* Centrado Vertical */
    align-items: center;
    /* Alinea el contenido en el centro del eje transversal (vertical) */

    /* Le damos una altura para que el centrado vertical funcione */
    height: 100%;

}

/* 3. Estilos para la tarjeta (opcional, para que se vea mejor) */
.card {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    /* Evita que la imagen sea demasiado grande en pantallas anchas */
    width: 90%;
    /* Hace la tarjeta responsiva en móviles */
}

.card img {
    max-width: 100%;
    /* Asegura que la imagen sea responsiva y no se desborde */
    height: auto;
    display: block;
    /* Elimina espacios extra debajo de la imagen */
}


/* ======================================================== */
/* =========== FIN: ESTILOS PÁGINA "SOBRE NOSOTROS" ========= */
/* ======================================================== */


/* =========== PIE DE PÁGINA COMPLETO ====== */
.main-footer {
    background-color: #212529;
    color: var(--color-text-light);
    padding: 3rem 0 2rem 0;
}

/*AGREGADO PARA QUE TODO LOS ELEMENTOS DE PIE DE PAGINA SE PONGA A LADO DEL OTRO*/
.footer-grid {

    display: flex;
    flex-wrap: wrap;
    gap: 120px;

}



.footer-grid h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-grid ul li {
    margin-bottom: 0.5rem;
}

.footer-grid ul a {
    color: #ced4da;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid #495057;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

/*----------------------MARCA PERU LOGO --------------------*/
.marca-peru {
    grid-column: span 1;
    display: flex;
    justify-content: center;
    align-items: center;


}

.marca-peru img {
    max-width: 160px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}


.marca-peru img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/*----------------------MARCA PERU LOGO --------------------*/

/* =========== DISEÑO RESPONSIVO (Media Queries) =========== */
@media (min-width: 640px) {
    .farm-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commitment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .menu-button {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-layout {
        grid-template-columns: 1fr 1fr;
    }
}