
/* Estilos de la galería */
.gallery-section {
    margin-top: 3rem;
}

.gallery-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.gallery-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 576px) {
    .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.02);
}

.gallery-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    display: block;
}

/* Estilos del modal puro */
.modal-pure {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.modal-pure.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-pure-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-pure-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border: none;
}

.modal-pure-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
}

.modal-pure-close:hover {
    opacity: 0.7;
}

.modal-pure-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-pure-body img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Animación de fade */
@keyframes fadeIn {
    from {
    opacity: 0;
    }
    to {
    opacity: 1;
    }
}

.modal-pure.show {
    animation: fadeIn 0.3s ease;
}

.modal-carousel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

.modal-carousel.show {
    display: block;
}

.modal-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-carousel-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    z-index: 2;
}

.modal-carousel-close {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-carousel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Contenedor del carrusel */
.carousel-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
}

.carousel-slides-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-image {
    max-width: 90%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
}

.carousel-counter {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #ccc;
}

/* Botones de navegación */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    z-index: 2;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
    padding: 0 20px;
    }
    
    .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    }
    
    .carousel-prev {
    left: 10px;
    }
    
    .carousel-next {
    right: 10px;
    }
    
    .carousel-image {
    max-width: 95%;
    max-height: 60vh;
    }
    
    .carousel-caption {
    font-size: 0.9rem;
    padding: 8px 15px;
    }
}

/* Animaciones */
@keyframes modalFadeIn {
    from {
    opacity: 0;
    }
    to {
    opacity: 1;
    }
}

@keyframes zoomIn {
    from {
    transform: scale(0.95);
    opacity: 0;
    }
    to {
    transform: scale(1);
    opacity: 1;
    }
}

@keyframes slideIn {
    from {
    transform: translateX(100%);
    opacity: 0;
    }
    to {
    transform: translateX(0);
    opacity: 1;
    }
}