/* Estilos para el slider mejorado */

/* Variables de colores institucionales */
:root {
    --primary-color: #0c62cf;
    --secondary-color: #6c757d;
    --accent-color: #3785e8;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

/* Contenedor del slider */
.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 2rem;
}

/* Slides individuales */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}


/* Fondos con gradientes y patrones */
/* En tu archivo slider.css, modifica las clases .slide1 a .slide4 así: */


.slide1 {
    background: linear-gradient(135deg, rgba(12, 98, 207, 0.65), rgba(73, 147, 242, 0.65)),
        url("../images/drsaa_entrada.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide2 {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.65), rgba(32, 201, 151, 0.65)),
        url("../images/carousel_image_10.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide3 {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.65), rgba(253, 126, 20, 0.65)),
        url("../images/carousel_image_11.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide4 {
    background: linear-gradient(135deg, rgba(12, 98, 207, 0.65), rgba(40, 167, 69, 0.65)),
        url("../images/carousel_image_4.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Contenido de los slides */
.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: slideUp 1s ease-out;
    z-index: 2;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #0c62cf 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(7, 61, 130, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Indicadores del slider */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Navegación del slider */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }
}