/* ESTILOS PARA EL CARRUSEL PRINCIPAL CON SWIPER */
.gep-main-carousel-container {
    position: relative;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.gep-main-carousel {
    width: 100%;
    padding-bottom: 40px; /* Espacio para la paginación */
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinea al inicio para el título */
}
.gep-main-carousel-container .swiper-button-next,
.gep-main-carousel-container .swiper-button-prev {
    color: #0073aa;
}
.gep-main-carousel-container .swiper-pagination-bullet-active {
    background: #0073aa;
}

/* ESTILOS PARA CADA ITEM INDIVIDUAL DEL CARRUSEL */
.gep-carousel-item-wrapper {
    text-align: center;
    width: 100%;
}
.gep-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
    margin-bottom: 12px;
}
.gep-item-title {
    font-size: 1.1em;
    font-weight: 500;
    padding: 0 10px;
    font-family: "Open Sans", Sans-serif;
    color: rgba(29, 29, 27, 1);
}

/* ESTILOS PARA EL CARRUSEL INTERNO (FADE AUTOMÁTICO) */
.gep-item-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}
.gep-item-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}
.gep-item-carousel img.active-slide {
    opacity: 1;
}
.gep-placeholder-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #888;
}
.gep-grid-item:hover .gep-item-carousel img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ESTILOS PARA EL OVERLAY Y BOTONES */
.gep-grid-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.gep-grid-item:hover .gep-grid-overlay {
    opacity: 1;
}
.gep-buttons-container {
    display: flex;
    gap: 10px;
}
.gep-button {
    background-color: #FFDE00; color: white; padding: 10px 15px;
    text-decoration: none; border-radius: 0; border: none; cursor: pointer; font-size: 14px; padding: 3px;
}
.gep-button:hover {
    background-color: #1D1D1B;
    color: white;
    border: 1px solid #FFDE00;
}
.gep-hidden-links {
    display: none;
}

/* ESTILOS PARA EL MODAL DE "VER DETALLE" */
.gep-modal {
    display: none; /* Oculto por defecto. Aquí estaba el error. */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}


.gep-modal.active {
    display: flex; /* El flexbox se aplica SOLO cuando la clase .active está presente */
    align-items: center;
    justify-content: center;
}

.gep-modal-content {
    background-color: #fefefe;
    padding: 40px 30px 30px; 
    border-radius: 0;
    width: 90%; 
    max-width: 1100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    display: flex; 
    flex-direction: column;
    overflow: hidden;
    height: 370px;
}

.gep-modal-close {
    color: #aaa; 
    position: absolute; 
    top: 10px; 
    right: 20px;
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
    z-index: 10;
}

.gep-modal-close:hover { 
    color: black; 
}

.gep-modal-layout {
    display: flex; 
    flex-wrap: nowrap; 
    gap: 0px;
    overflow: hidden;
}

.gep-modal-gallery {
    flex: 1; 
    min-width: 50%;
}

.gep-modal-details {
    flex: 1;
    min-width: 50%;
    overflow-y: auto; 
    padding-right: 15px;
}

/* ESTILOS PARA EL CARRUSEL DENTRO DEL MODAL */
.gep-carousel-container {
    position: relative; width: 100%; overflow: hidden; border-radius: 8px;
}
.gep-modal-content .gep-carousel-container {
    border-radius: 0;
    display: flex;
    justify-content: center;
    height: 100%!important;
}
.gep-carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.gep-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}
.gep-carousel-slide img {
    width: 100%; height: auto; display: block; object-fit: cover;
    object-position: center; height: 100%!important;
}
.gep-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: #222222; opacity: .6; color: white; border: none;
    font-size: 32px; font-weight: 400; padding: 10px 10px; cursor: pointer;
    z-index: 10; border-radius: 0; line-height: 1; transition: background-color 0.2s ease; height: 60px; width: 30px;
}
.gep-carousel-arrow:hover { background-color: rgba(0, 0, 0, 0.8); }
.gep-carousel-arrow.prev { left: 0px; }
.gep-carousel-arrow.next { right: 0px; }
.gep-carousel-arrow.disabled { opacity: 0.3; cursor: not-allowed; }

/* Estilo para la imagen/icono dentro de un botón */
.gep-button .gep-button-icon {
    max-height: 20px; /* Ajusta este valor según necesites */
    width: auto;
    display: block;
}



@media (max-width: 768px) {
    
    

  
    .gep-modal-layout {
        flex-direction: column;
      
        overflow-y: auto; 
        padding-right: 10px;
    }


    .gep-modal-details {
        overflow-y: visible; 
        padding-right: 0;  
    }


    .gep-modal-content {
        
        flex-shrink: 1;
        padding: 20px;
        height: 70vh;
    }


    .gep-modal-gallery {
        margin-bottom: 20px;
    }
    
    .gep-main-carousel-container .swiper-button-next, .gep-main-carousel-container .swiper-button-prev {
    opacity: 0.6!important;
    transition: opacity 0.3s ease-in-out;
}
.gep-main-carousel-container {
    position: relative;
    padding: 0;
    
}
.carrusel-galeria .swiper-button-prev {
    left: 0!important;
}
.carrusel-galeria .swiper-button-next {
    right: 0!important;
}


.baguetteBox-button{
    display: block!important;
}

}