/* ============================================
   SLIDESHOW PERSONALIZADO - ESTILOS
   Prefijo: sld_
   ============================================ */

/* === CONTENEDOR PRINCIPAL === */
.sld-slideshow-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    min-height: 420px;
    max-height: 620px;
    position: relative;
    overflow: hidden;
    background-color: #0b1a2e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(11, 42, 65, 0.18);
}

/* === CADA SLIDE === */
.sld-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
}

.sld-slide.active {
    opacity: 1;
}

/* Viñeta suave para que no se coma el borde */
.sld-slideshow-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11,26,46,0.08) 0%, rgba(11,26,46,0) 28%, rgba(11,26,46,0) 72%, rgba(11,26,46,0.22) 100%);
    z-index: 2;
}

/* === INDICADORES (PUNTOS) === */
.sld-slide-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.sld-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
}

.sld-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.sld-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* === BOTONES DE NAVEGACIÓN (FLECHAS) === */
.sld-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(15, 23, 42, 0.38);
    color: white;
    border: 1px solid rgba(255,255,255,0.28);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.sld-slide-nav:hover {
    background: rgba(58, 116, 194, 0.85);
    transform: translateY(-50%) scale(1.06);
}

.sld-slide-nav.prev {
    left: 16px;
}

.sld-slide-nav.next {
    right: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .sld-slideshow-container {
        aspect-ratio: 16 / 8;
        min-height: 320px;
        max-height: 480px;
    }
    .sld-slide {
        background-position: center 12%;
    }
}

@media (max-width: 768px) {
    .sld-slideshow-container {
        aspect-ratio: 16 / 10;
        min-height: 240px;
        max-height: 360px;
        border-radius: 12px;
    }

    .sld-slide {
        background-size: cover;
        background-position: center center;
    }

    .sld-slide-nav {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .sld-slideshow-container {
        aspect-ratio: 4 / 3;
        min-height: 220px;
        max-height: 300px;
        border-radius: 10px;
    }

    .sld-slide {
        background-position: center center;
    }
}
