/* Importar una fuente elegante */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

.slider-container {
    width: 100%;
    height: 75vh;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.slider-wrapper {
    display: flex;
    width: 500%; 
    height: 100%;
    /* Ajusté el tiempo a 16s para que sea más ameno leer */
    animation: infinite-loop 16s infinite cubic-bezier(0.83, 0, 0.17, 1);
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Capa oscura gradual para mayor elegancia */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor de texto con animación */
.info_s {
    position: absolute;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.info_s h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    /* Animación de entrada: cae desde arriba */
    animation: slideDown 1.5s ease-out forwards;
    opacity: 0;
}

.info_s p {
    font-size: 1.4rem;
    font-weight: 300;
    border-top: 2px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    display: inline-block;
    /* Animación de entrada: sube desde abajo */
    animation: slideUp 1.5s ease-out 0.3s forwards;
    opacity: 0;
}

/* --- KEYFRAMES DE TEXTO --- */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* --- KEYFRAMES DEL SLIDER --- */
/* Sincronizado para 5 diapositivas (incluyendo la copia final) */
@keyframes infinite-loop {
    0%, 15% { transform: translateX(0); }
    20%, 35% { transform: translateX(-20%); }
    40%, 55% { transform: translateX(-40%); }
    60%, 75% { transform: translateX(-60%); }
    80%, 98% { transform: translateX(-80%); }
    100% { transform: translateX(0); }
}