/**
 * Hero Slider Component
 * Academia Alexander Fleming
 */

/* ==========================================
   SLIDER CONTAINER
   ========================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: var(--primary-color);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================
   SLIDES
   ========================================== */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background Image */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Degradado blanco para mejorar legibilidad del texto */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 15%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0) 60%
    );
    z-index: 1;
}

/* ==========================================
   SLIDE CONTENT
   ========================================== */

.slide .container {
    position: relative;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 650px;
    color: white;
    animation: slideInFromLeft 0.8s ease-out;
    padding: 40px 100px 40px 80px;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats Badge */
.slide-content .stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 82, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 82, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.slide-content .stats-badge span {
    font-size: 24px;
}

.slide-content .stats-badge strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-content .stats-badge p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Titles */
.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #000000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #1F2937;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-buttons .btn-lg {
    font-size: 16px;
    padding: 16px 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Promo Box */
.promo-box {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(0, 82, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 2px solid rgba(0, 82, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-box p {
    margin: 0;
    font-size: 15px;
    color: #000000;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.promo-box .highlight {
    color: #DC2626;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

/* ==========================================
   SLIDER CONTROLS
   ========================================== */

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 82, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 82, 255, 1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.slider-btn:hover {
    background: rgba(0, 82, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* ==========================================
   SLIDER DOTS (Indicators)
   ========================================== */

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 82, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 82, 255, 0.8);
}

.dot:hover {
    background: rgba(0, 82, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: rgba(0, 82, 255, 1);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.4);
}

/* ==========================================
   WAVE DIVIDER - Eliminado para no cortar contenido
   ========================================== */

.hero-slider .wave-divider {
    display: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablets */
@media (max-width: 1024px) {
    .hero-slider {
        height: 600px;
    }

    .slide-content h1 {
        font-size: 42px;
    }

    .slide-description {
        font-size: 18px;
    }

    .hero-buttons .btn-lg {
        font-size: 15px;
        padding: 14px 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
        min-height: 600px;
    }

    .slide-content {
        max-width: 100%;
        padding: 20px 30px 20px 30px;
    }

    .slide-content h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .slide-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn-lg {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 14px;
        padding: 14px 24px;
    }

    .promo-box {
        padding: 16px;
    }

    .promo-box p {
        font-size: 15px;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-dots {
        bottom: 30px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    .slide-content .stats-badge {
        padding: 10px 16px;
    }

    .slide-content .stats-badge span {
        font-size: 20px;
    }

    .slide-content .stats-badge strong {
        font-size: 14px;
    }

    .slide-content .stats-badge p {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 550px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-description {
        font-size: 15px;
    }

    .promo-box p {
        font-size: 14px;
    }
}
