/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA LA PÁGINA "NOSOTROS"
   ========================================================================== */

/* SEPARADOR DE SECCIONES (TÍTULOS) */


.section-title-wrap { 
    text-align: center; 
    margin-bottom: 50px; 
    position: relative; 
}
.section-title-wrap h2 { 
    font-family: 'Playfair Display', serif; 
    color: var(--navy, #16325B); 
    font-size: 2.5rem; 
    position: relative; 
    display: inline-block; 
    padding-bottom: 15px; 
    margin-bottom: 0; 
}
.section-title-wrap h2::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 80px; 
    height: 4px; 
    background-color: var(--gold, #F5A623); 
    border-radius: 2px; 
}

/* ESTILOS DEL LAYOUT ZIG-ZAG (HISTORIA Y QUIÉNES SOMOS) */
.exp-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.exp-row { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: stretch; 
    gap: 40px; 
    margin-bottom: 60px; 
}
.exp-row:nth-child(even) { 
    flex-direction: row-reverse; 
}

.exp-image-col { 
    flex: 1; 
    min-width: 300px; 
    display: flex; 
}
.exp-image-col img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    transition: transform 0.4s ease; 
}
.exp-image-col img:hover { 
    transform: translateY(-5px); 
}

.exp-text-col { 
    flex: 1; 
    min-width: 300px; 
    background-color: #ffffff; 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); 
    border: 1px solid #eaeaea; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.exp-text-col h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--navy, #16325B); 
    margin-bottom: 20px; 
    font-size: 2rem; 
}
.exp-text-col p { 
    color: #666; 
    font-size: 1.05rem; 
    line-height: 1.7; 
    margin-bottom: 15px; 
}

/* ESTILOS DE LA GALERÍA DEL EQUIPO */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
    max-width: 1100px; 
    margin: 40px auto 0 auto; 
    padding: 0 20px; 
}
.gallery-item { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 15px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.gallery-item:hover { 
    transform: scale(1.03); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .exp-row, .exp-row:nth-child(even) { 
        gap: 30px; 
        margin-bottom: 50px; 
    }
    .exp-image-col img { height: 350px; }
    .exp-text-col { padding: 30px 20px; }
    .exp-text-col h3 { font-size: 1.6rem; }
}

.exp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch !important; 
}
.exp-image-col {
    position: relative; /* <-- CLAVE: Actúa como contenedor de referencia */
    min-height: 350px; /* Altura mínima por defecto */
    /* width: 50%; (O la clase que estés usando en tu CSS principal para darle ancho) */
}
.exp-image-col img {
    position: absolute; /* <-- CLAVE: Saca la foto del flujo para que no estire la columna por lo alto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important; 
    border-radius: 12px; /* (Opcional) Para mantener esos bordes redondeados que se ven en tu foto */
}

/* ESTILOS DE LA GALERÍA DEL EQUIPO */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    /* 👇 AUMENTAMOS EL ESPACIO GENERAL DEL GRID */
    gap: 40px; 
    max-width: 1100px; 
    margin: 40px auto 0 auto; 
    padding: 0 20px; 
}

.gallery-item { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 15px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* 👇 REFUERZO DE SEGURIDAD PARA EL ESPACIADO VERTICAL */
    margin-bottom: 40px !important; 
}

/* Reducimos ligeramente el espacio en móviles para que no se vea desproporcionado */
@media (max-width: 768px) {
    .gallery-grid {
        gap: 25px;
    }
    .gallery-item {
        margin-bottom: 25px !important;
    }
}