/* =============================================
   CAROUSEL MODERNIZADO - FAEMULTIMEDIA
   Sistema de color unificado con la página
   ============================================= */

/* Carousel Container */
.design-carousel-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom,
            rgba(15, 15, 15, 1) 0%,
            #000000 50%,
            rgba(10, 10, 10, 1) 100%);
    overflow: hidden;
    position: relative;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.carousel-header {
    text-align: center;
    margin-bottom: 4rem;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #E65616 0%, #FF7640 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(230, 86, 22, 0.5));
}

.carousel-subtitle {
    color: #999999;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 3D Perspective Wrapper */
.carousel-scene {
    perspective: 1000px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    justify-content: center;
}

.carousel-slide {
    min-width: 350px;
    height: 450px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0.6;
    transform: scale(0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.1) translateZ(50px);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(230, 86, 22, 0.4),
        0 0 40px rgba(230, 86, 22, 0.2);
    border: 1px solid rgba(230, 86, 22, 0.3);
}

/* Slide Content - Optimizado para ver imágenes en HD */
.slide-image-container {
    height: 70%;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
    /* Asegurar que la imagen se vea nítida en HD */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.carousel-slide:hover .slide-image {
    transform: scale(1.05);
}

/* Reducir opacidad de overlays para ver mejor las imágenes */
.slide-content {
    height: 30%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 50%,
            rgba(0, 0, 0, 0.6) 100%);
}

.slide-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E65616;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slide-title {
    font-size: 1.4rem;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0;
}

/* Navigation Controls - Colores FAEMULTIMEDIA */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(230, 86, 22, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 86, 22, 0.3);
    color: #E65616;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    font-size: 1.2rem;
}

.carousel-nav-btn:hover {
    background: linear-gradient(135deg, #E65616 0%, #FF7640 100%);
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(230, 86, 22, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #E65616;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(230, 86, 22, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 280px;
        height: 400px;
    }

    .carousel-slide.active {
        transform: scale(1.05) translateZ(20px);
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Lightbox Styles - Optimizado para HD */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(230, 86, 22, 0.3);
    animation-name: zoom;
    animation-duration: 0.6s;
    /* Asegurar calidad HD en lightbox */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

@keyframes zoom {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #E65616;
    text-shadow: 0 0 20px rgba(230, 86, 22, 0.8);
    text-decoration: none;
    cursor: pointer;
}

/* Zoom Icon Overlay - Más sutil para no tapar imagen */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E65616;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    border: 2px solid rgba(230, 86, 22, 0.5);
}

.carousel-slide:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.carousel-slide {
    cursor: zoom-in;
}

/* Efecto de hover más profesional */
.carousel-slide:hover {
    border-color: rgba(230, 86, 22, 0.5);
}

/* Asegurar que el texto sea siempre legible */
.slide-content p {
    color: #999999;
    font-size: 0.85rem;
}

/* Optimización para pantallas Retina/HD */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .slide-image,
    .lightbox-content {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}