@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Header section */

/* header{
    width: 100%; 
    max-width: 100%;
    padding-left: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header nav a{
    color: #fff;
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 16px;
    transition: 0.2s;
    text-decoration: none;
} */




/* Header section */

/* carousel */

.carousel {
    width: 100vw;
    height: calc(100vh + 50px); 
    margin-top: -50px;
    overflow: hidden;
    position: relative;
}

.carousel .list .item {
    width: 180px;
    height: 250px;
    position: absolute;
    opacity: 0.8; 
    top: 80%;
    transform: translateY(-70%) scale(1);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: all 1s ease-in-out;
}

/* Miniatura que se convierte en fondo */
.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0) scale(1.05);
    border-radius: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
    z-index: 50;
    opacity: 1;
    animation: zoomOutEffect 7s ease-in-out forwards; /* Nuevo efecto de alejamiento */
}

/* Capa oscura solo para item 2 */
.carousel .list .item:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.514); 
    z-index: 1;
    border-radius: inherit;
}

/* Posiciones de miniaturas */
.carousel .list .item:nth-child(3){ left: 67%; }
.carousel .list .item:nth-child(4){ left: calc(67% + 200px); }
.carousel .list .item:nth-child(5){ left: calc(67% + 400px); }
.carousel .list .item:nth-child(6){ left: calc(67% + 600px); }
.carousel .list .item:nth-child(n+7){
    left: calc(67% + 800px);
    opacity: 0;
}

/* 🎯 Efecto de alejamiento (zoom out dinámico) */
@keyframes zoomOutEffect {
    0% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}




.list .item .content{
    position: absolute;
    top: 55%;
    left: 100px;
    transform: translateY(-50%);
    width: 65vw; /* Ocupa el 60% del ancho de la ventana */
    max-width: 1000px; /* Pero no más de 800px para evitar que sea demasiado ancho en pantallas grandes */
    text-align: left;
    color: #fff;
    display: none;
}

.list .item:nth-child(2) .content{
    display: block;
}
/* Asegura que el contenedor del texto esté por encima del fondo oscuro */
.list .item .content {
    position: relative; /* Necesario para que z-index funcione */
    z-index: 2; /* Mayor que el z-index:1 del ::before */

}

.content .title {
    font-size: 55px;
    text-transform: uppercase;
    color: #d89205;
    text-shadow: 3px 4px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    line-height: 1;
     margin-bottom: 15px; /* Espacio debajo del título */
    /* Nuevas propiedades añadidas */
    max-width: 60vw; /* Ocupa máximo el 50% del ancho de la pantalla */
    word-wrap: break-word; /* Permite que las palabras largas se dividan y continúen en la siguiente línea */
    white-space: normal; /* Asegura que el texto haga saltos de línea cuando sea necesario */
    
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .name{
    font-size: 45px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(6, 40, 91, 0.8);

    opacity: 0;
    animation: animate 2s ease-in-out 0.6s 1 forwards;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    text-shadow: 3px 4px 4px rgba(0, 0, 0, 0.8);
    margin-left: 5px;
    max-width: 45vw;
    opacity: 0;
    animation: animate 2s ease-in-out 0.9s 1 forwards;
    
}
.content .btn {
    margin-left: 5px;
    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
    display: inline-flex; /* Cambiado de flex a inline-flex para que ocupe solo el ancho necesario */
    position: relative; /* Añadido para contener elementos absolutos */
}

.content .btn a {
    text-decoration: none;
    display: inline-block; /* Asegura que cada enlace ocupe solo su espacio */
}

.content .btn button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
    transition: 0.3s;
    background-color: transparent; /* Añadido para consistencia */
    white-space: nowrap; /* Evita que el texto haga wrap */
}

/* Elimina el margen derecho del primer botón y lo aplica al enlace */
.content .btn a:first-child {
    color: #ffffffcb;
    background-color: #0037ffcb;
    margin-right: 15px;
}

/* Estilo específico para el botón Facebook */
.content .btn a:nth-child(2) button {
    background: transparent;
    color: #ffffffcb;
}

/* Efecto hover para el botón Facebook */
.content .btn a:nth-child(2) button:hover {
    background-color: #0037ffcb;
    color: #fff;

}


@keyframes animate {
    
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Carousel */






/* next prev botones de carrusel */

.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff63;
    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.arrows button:hover{
    background: #fff;
    color: #000;
}


/* time running */
.carousel .timeRunning{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background: #1c87c9;
    background: linear-gradient(90deg, rgba(28, 135, 201, 1) 24%, rgba(255, 255, 255, 1) 24%, rgba(252, 252, 252, 1) 77%, rgba(28, 135, 201, 1) 75%);
    left: 0;
    top: 130px; /* El tamaño del meno son 80px y -50 es lo que el carrusel subio para llegar al  */
    animation: runningTime 7s linear 1 forwards;
} 

/* time running - Barra de progreso inferior */



@keyframes runningTime {
    
    from{width: 0%;}
    to{width: 100%;}

}


/* Responsive Design */

@media screen and (max-width: 999px){
    
    header{
        padding-left: 50px;
    }

     .list .item .content{
        top: 45%;
    }

    .list .item .content{
        left: 40px;
    }

    .content .title{
        font-size: 30px;
         margin-bottom: 15px; /* Espacio debajo del título */
    }
       .content .name{
        font-size: 25px;
    }

.content .des {
    font-size: 16px;
    max-width: 60vw;
    display: -webkit-box;
    -webkit-line-clamp: 5;         /* Cambia este número según las líneas que quieras */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .content .btn {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .content .btn button{
        padding: 10px 15px;
        font-size: 15px;
        width: auto; /* o 100% si quieres que ocupen todo el ancho disponible */
    }


}

@media screen and (max-width: 690px){
    header nav a{
        font-size: 14px;
        margin-right: 0;
    }

    .list .item .content{
        top: 50%;
    }

    .content .title{
        font-size: 25px;
         margin-bottom: 15px; /* Espacio debajo del título */
    }
    .content .name{
        font-size: 20px;
    }

    .content .des {
    font-size: 16px;
    max-width: 55vw;
    display: -webkit-box;
    -webkit-line-clamp: 5;         /* Cambia este número según las líneas que quieras */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    } 
    .content .btn {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .content .btn button{
        padding: 10px 15px;
        font-size: 15px;
        width: auto; /* o 100% si quieres que ocupen todo el ancho disponible */
    }
}