                                                                                                                                                                                          @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');

body{
    margin: 0;
    background-color: #0000007c; 
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
    
}
a{
    text-decoration: none;
}

header{
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 50px;
    display: flex; /* Usar flexbox para alinear elementos */
    align-items: center;
    position: relative;
    z-index: 100; /* Asegura que el menú esté sobre otros elementos */
    color: #eee;
    font-size: 150%;
}

header a{
    color: #ffffff;
    margin-right: 5px;
    padding: 5px 10px;
    transition: 0.2s;
}

a.active{
    background:#17416d;
    border-radius: 2px;
    border-radius: 15px; /* Hacer el botón un poco redondeado */

}

header a:hover{
    background: #17416d;
    border-radius: 2px;
    border-radius: 15px; /* Hacer el botón un poco redondeado */
}

/* Botón hamburguesa */

/* Botón de 3 rayas: oculto en desktop, a la derecha en mobile */
#menu-btn {
  display: none; /* oculto por defecto */
  font-size: 32px;
  line-height: 1;   /* para que no haya espacio extra */
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto; /* Empuja el botón al lado opuesto del logo */
}

/* Responsive */
@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: 60px;          /* debajo del header */
    right: 0;
    background: #333;   /* para que se vea sobre el fondo */
    display: none;      /* oculto por defecto en mobile */
    flex-direction: column;
    width: 220px;
    padding: 15px;
    border-radius: 8px;
  }

  header nav.show {
    display: flex;      /* se muestra al tocar las 3 rayas */
  }

  #menu-btn {
    display: block;     /* mostrar botón en mobile */
  }
}

@media (max-width: 768px) {
  header nav a {
    display: inline-block;     /* en lugar de ocupar todo el ancho */
    width: auto;               /* se ajusta al texto */
    margin-bottom: 10px;       /* espacio entre botones */
    border-radius: 15px;       /* mantiene la forma redondeada */
  }
}



/* slider section  */

.slider{
    height: 100vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden; /* Oculta el desbordamiento */
    position: relative; /* Para posicionar elementos hijos absolutamente */
}
.slider .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor */
}
.slider .list .item .content{
    position: absolute;
    top: 15%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box; /* Incluye el padding en el ancho total */
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.slider .list .item .content .title,
.slider .list .item .content .type{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.slider .list .item .type{
    color: #17416d;
}
.slider .list .item .button{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
    border-radius: 15px; /* Hacer el botón un poco redondeado */
}
.slider .list .item .button button{
    border: none;
    background-color: #eee;
    font-family: Poppins;
    font-weight: 500;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 2px;
    border-radius: 15px; /* Hacer el botón un poco redondeado */
}


.slider .list .item .button button:hover{
    letter-spacing: 3px;
}
.slider .list .item .button button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
    border-radius: 15px; /* Hacer el botón un poco redondeado */
}





/* Thumbnail Section  */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item{
    width: 140px;
    height: 200px;
    flex-shrink: 0; /* Evita que los elementos se reduzcan */
    position: relative;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}


/* nextPrevArrows Section  */
.nextPrevArrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex; /* use flexbox for alignment */
    gap: 10px;
    align-items: center;
}
.nextPrevArrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #17416d;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}
.nextPrevArrows button:hover{
    background-color: #fff;
    color: #000;
}

/* Animation Part */
.slider .list .item:nth-child(1){
    z-index: 1;
}


/* animation text in first item */
.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .type,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.slider .list .item:nth-child(1) .content .title{
    animation-delay: 0.4s !important;
}
.slider .list .item:nth-child(1) .content .type{
    animation-delay: 0.6s !important;
}
.slider .list .item:nth-child(1) .content .description{
    animation-delay: 0.8s !important;
}
.slider .list .item:nth-child(1) .content .buttons{
    animation-delay: 1s !important;
}



/* Animation for next button click */
.slider.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.slider.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.slider.prev .list .item img{
    z-index: 100;
}


@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}


.slider.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}



/* Animation for prev button click */
.slider.prev .list .item:nth-child(2){
    z-index: 2;
}

.slider.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}
/* Animation for prev thumbnail */
.slider.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.slider.next .nextPrevArrows button,
.slider.prev .nextPrevArrows button{
    pointer-events: none;
}


/* animation text out for prev button */
.slider.prev .list .item:nth-child(2) .content .title,
.slider.prev .list .item:nth-child(2) .content .type,
.slider.prev .list .item:nth-child(2) .content .description,
.slider.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .slider .list .item .content{
        padding-right: 0;
    }
    .slider .list .item .content .title{
        font-size: 50px;
    }
}


.hola{
    padding: 10px;
    display: flex;
    justify-content: space-evenly; /* Distribuye los elementos con espacio uniforme */
    background-color: gray;
    color: #fff;
}
a{
    color: white;
}

#searchInput {
    padding: 5px;
    width: 200px;
}

#searchButton {
    padding: 5px;
}

.highlight {
    background-color: yellow;
}

.types{
    font-size: 40px;
    color: #17416d;
}

.description{
    font-size: 14px;
}                                                                    
