/* Estilos para el Slider con Imágenes de Fondo */

.slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #1a1a2e;
}

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

.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;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Overlay oscuro para mejor legibilidad del texto */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Slide 1 - HR Trends */
.slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&h=600&fit=crop&q=80');
}

/* Slide 2 - Gestión del Talento */
.slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1920&h=600&fit=crop&q=80');
}

/* Slide 3 - Capacitaciones */
.slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1920&h=600&fit=crop&q=80');
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 80px 40px;
    margin: 0 auto;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
    border-radius: 50px 0 0 50px;
}

.slider-btn.next {
    right: 20px;
    border-radius: 0 50px 50px 0;
}

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

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

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

.dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
    .slider {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 450px;
    }
    
    .slide-content {
        padding: 40px 20px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
