.gallery-section {
    padding: 50px 5%;
    background: #fff;
    max-width: 1200px;
    margin: auto;
}

.gallery-header {
    display: flex;
    justify-content: flex-end; /* Alinea todo a la derecha */
    align-items: center;
    gap: 30px; /* Espaciado entre el texto y los botones */
    margin-bottom: 30px;;
}

.gallery-header h2 {
    font-size: 28px;
    color: #002b5c;
    margin: 0;
    white-space: nowrap; /* Evita que se divida en varias líneas */
}

.gallery-nav {
    display: flex;
    gap: 10px;
}

.gallery-nav .gallery-btn {
    background: rgba(242,242,242,1);
    color: rgb(115,115,115);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s ease;
}

.gallery-btn:hover {
    background: rgba(222,222,222,1);
    transform: scale(1.1);
}

.gallery-content {
    display: flex;
    gap: 30px;
    height: 400px; /* altura fija recomendada */
}

/* Imagen principal grande a la izquierda */
.gallery-large-image {
    flex: 1.2;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor de imágenes pequeñas en horizontal */
.gallery-small-images {
    flex: 1;
    display: flex;
    flex-direction: row; /* Ahora las imágenes están en fila (horizontal) */
    gap: 30px;
    align-items: center;
}

/* Estilos individuales para imágenes pequeñas */
.gallery-small-image {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    height: 100%; /* Mantiene la altura pareja */
}

.gallery-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* recorte correcto sin distorsión */
    transition: transform 0.3s;
}

.gallery-small-image:hover img {
    transform: scale(1.1);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .gallery-content {
        flex-direction: column;
        height: auto;
    }
    
    .gallery-small-images {
        flex-direction: row;
        height: auto;
    }
}