#contenedor-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    justify-content: space-between;
    margin: 0;
}

#mayoria-edad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.864);
    z-index: 3;
    position: fixed;
}

#logo-edad {
    width: 150px;
    filter: drop-shadow(2px 2px 3px rgb(0, 0, 0));
}

#letrero-edad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 50%;
    background-color: rgba(155, 127, 2, 0.863);
    border-radius: 10px;
    user-select: none;
}

#letrero-edad p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 30px;
    color: rgb(255, 255, 255);
    font-family: "Roboto", sans-serif;
    font-size: 1.5em;
    text-align: center;
    user-select: none;
    margin-bottom: 80px;
    font-weight: bolder;
}

.boton-edad {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    border: none;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.692);
    width: 70%;
    height: 50px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
}

#aceptar-edad {
    background-color: rgb(24, 143, 24);
    transition: all 300ms ease;
}

#cancelar-edad {
    background-color: rgb(233, 0, 0);
    transition: all 300ms ease;
}

@media (hover: hover) {

    #aceptar-edad:hover {
        background-color: aliceblue;
        color: rgb(24, 143, 24);
        transform: scale(1.1);
    }

    #cancelar-edad:hover {
        background-color: aliceblue;
        color: rgb(210, 0, 0);
        transform: scale(1.1);
    }
}

/*-----------------HEADER----------------*/

#logo {
    width: 10%;
    margin-top: 50px;
    image-rendering: optimizeSpeed;
}

#modelos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
}

/*BANNER*/
.banner {
    justify-content: center;
    width: 900px;
    height: 225px;
    margin: 20px 0 20px 0;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.banner-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.nav-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgb(255, 208, 0);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 5px;
    font-family: "Rubik";
    font-weight: 800;
    box-shadow: 0px 0px 10px rgb(255, 208, 0);
}

#next {
    left: 60px; /* Ajusta la posición del botón "Siguiente" */
}


#seleccionar-modelo {
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(195, 166, 0);
    font-family: "Roboto", sans-serif;
    width: 320px;
    text-align: center;
    color: rgb(0, 0, 0);
    user-select: none;
}

#texto-modelos {
    font-family: "Roboto", sans-serif;
    color: white;
    margin: 20px 0 20px 0;
    text-align: center;
}

#lista-modelos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 20px 0 20px 0;
    user-select: none;
}

.modelo-boton {
    cursor: pointer;
    border: 0;
    user-select: none;
}

.modelo-boton img {
    width: 80%;
    image-rendering: optimizeSpeed;
    user-select: none;
}

.modelo-boton h3 {
    font-size: 16px;
    user-select: none;
    margin: 0;
}

.detalles-modelo {
    font-size: 18px;
    user-select: none;
}

.discountFlag {
    position: absolute;
    margin: -150px 0px 0px 103px;
    padding: 2px 20px 0px 7px;
    width: 20px;
    height: 20px;
    background-color: rgb(240, 0, 112);
    color: rgb(255, 255, 255);
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

/*-----------------HOVERS----------------*/

@media (hover: hover) {
    .modelo-boton {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 180px;
        height: 280px;
        border-radius: 5px;
        margin: 10px;
        color: white;
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        text-decoration: none;
        background-color: rgba(0, 0, 0, 0.425);
        transition-duration: 400ms;
        user-select: none;

    }

    .modelo-boton:hover {
        background-color: rgb(195, 166, 0);
        color: rgb(0, 0, 0);
        transform: scale(1.05);
    }

    .modelo-boton>p {
        margin: 0;
        letter-spacing: 1px;
        font-weight: 400;
        color: rgb(255, 234, 0);
        user-select: none;
        transition-duration: 400ms;
    }

    .modelo-boton:hover>p {
        color: rgb(0, 0, 0);
    }
}

@media (hover: none) {
    .modelo-boton {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 180px;
        height: 280px;
        border-radius: 5px;
        margin: 10px;
        color: white;
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        text-decoration: none;
        background-color: rgba(0, 0, 0, 0.425);
        user-select: none;
    }

    .modelo-boton:hover {
        background-color: rgb(195, 166, 0);
        color: rgb(33, 33, 33);
    }

    .modelo-boton>p {
        margin: 0;
        letter-spacing: 1px;
        font-weight: 400;
        color: rgb(255, 234, 0);
        user-select: none;
        transition-duration: 400ms;
    }

    .modelo-boton:hover>p {
        color: rgb(0, 0, 0);
    }
}

#footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    margin-top: 50px;
    background-color: black;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 15px;
    opacity: 0.8;
}

@media screen and (max-width: 1300px) {

    .banner {
        width: 750px;
        height: 187px;
    }

    #logo {
        width: 150px;
        margin-top: 50px;
        image-rendering: optimizeSpeed;
    }

    #modelos {
        width: 90%;
        justify-content: center;
    }

    #lista-modelos {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        user-select: none;
    }

    .modelo-boton img {
        width: 65%;
        image-rendering: optimizeSpeed;
        user-select: none;
    }

    .modelo-boton h3 {
        font-size: 15px;
        user-select: none;
    }

    .detalles-modelo {
        font-size: 14px;
    }

    @media (hover: hover) {
        .modelo-boton {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 150px;
            height: 200px;
            border-radius: 5px;
            color: white;
            font-family: "Roboto", sans-serif;
            font-weight: 500;
            text-decoration: none;
            background-color: rgba(0, 0, 0, 0.425);
            transition: all 400ms ease;
            user-select: none;
        }

        .modelo-boton:hover {
            background-color: rgb(195, 166, 0);
            color: rgb(33, 33, 33);
            transform: scale(1.1);
        }
    }

    @media (hover: none) {
        .modelo-boton {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 150px;
            height: 200px;
            border-radius: 5px;
            color: white;
            font-family: "Roboto", sans-serif;
            font-weight: 500;
            text-decoration: none;
            background-color: rgba(0, 0, 0, 0.425);
            user-select: none;
        }

        .modelo-boton:active {
            background-color: rgb(195, 166, 0);
            color: rgb(33, 33, 33);
        }
    }

}

@media screen and (max-width: 750px) {

    .banner {
        width: 600px;
        height: 150px;
    } 

}

@media screen and (max-width: 566px) {

    .banner {
        width: 400px;
        height: 100px;
    }
    
    #logo-edad {
        width: 100px;
    }
    
    #letrero-edad {
        width: 80%;
        height: 50%;
    }

    #modelos {
        width: 95%;
        justify-content: center;
    }

    #seleccionar-modelo {
        width: 250px;
    }

    #lista-modelos {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        user-select: none;
    }

    .modelo-boton {
        cursor: pointer;
        border: 0;
        user-select: none;
    }

    .modelo-boton img {
        width: 90px;
        image-rendering: optimizeSpeed;
        user-select: none;
    }

    .modelo-boton h3 {
        font-size: 12px;
        user-select: none;
    }

    .detalles-modelo {
        font-size: 11px;
    }

    @media (hover: hover) {
        .modelo-boton {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 120px;
            height: 180px;
            border-radius: 5px;
            color: white;
            font-family: "Roboto", sans-serif;
            font-weight: 500;
            text-decoration: none;
            background-color: rgba(0, 0, 0, 0.425);
            transition: all 400ms ease;
            user-select: none;
        }

        .modelo-boton:hover {
            background-color: rgb(195, 166, 0);
            color: rgb(33, 33, 33);
            transform: scale(1.1);
        }
    }

    @media (hover: none) {
        .modelo-boton {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 120px;
            height: 180px;
            border-radius: 5px;
            color: white;
            font-family: "Roboto", sans-serif;
            font-weight: 500;
            text-decoration: none;
            background-color: rgba(0, 0, 0, 0.425);
            user-select: none;
        }

        .modelo-boton:active {
            background-color: rgb(195, 166, 0);
            color: rgb(33, 33, 33);
        }
    }

}