@font-face {
    font-family: 'rdheavy';
    src: url('/fonts/Refrigerator_Deluxe_Heavy.otf') format('opentype');
}

@font-face {
    font-family: 'rd';
    src: url('/fonts/Refrigerator_Deluxe.otf') format('opentype');
}


body {
    margin: 0;
    padding: 0;
    background: url('/images/FONDO.webp') no-repeat center center/cover;
    height: 100vh;
    font-family: 'rd', sans-serif;
}

.container {
    display: flex;
    width: 90%;
    margin: 0 auto;
    height: 100vh;
}

/* Parte izquierda: logos y título uno debajo del otro */
.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8rem;
}

.logos {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
}

.logos img {
    height: 140px;
    margin: 10px 0;
    width: auto;
}

.divider {
    width: 2px;
    height: 150px;
    background: white;
    margin: 0 20px;
    box-shadow: 2px 0px 10px rgba(255, 255, 255, 0.5);
}

.titulo h2 {
    font-size: 9.5rem;
    text-transform: uppercase;
    color: rgb(233, 233, 233);
    font-weight: normal;
    width: 100%;
    margin: 0;
}

.titulo span {
    color: #d8d8d8;
    font-family: 'rdheavy', sans-serif;
}

/* Parte derecha: selección de país centrada verticalmente */
.right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4rem;
}

.pais {
    text-align: center;
    color: white;
}

.pais .title {
    font-size: 3.9rem;
    margin-bottom: 20px;
    border-bottom: 5px solid white;
    display: inline-block;
    padding-bottom: 5px;
    font-family: 'rdheavy', sans-serif;
    font-weight: bold;
}

.pais .flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 45px;
    margin-top: 20px;
}

.pais .flags button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pais .flags img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    outline: 2px solid white;
    outline-offset: 0.5rem;
    transition: transform 0.3s;
}

.pais .flags button:hover img {
    transform: scale(1.1);
}

.pais .flags p {
    font-size: 1.8rem;
    color: #FFF;
    font-family: 'rd', sans-serif;
    margin-top: 1rem;
}

@media (max-width: 1466px) and (min-width: 1024px) {
    .container {
        width: 100%;
    }

    .logos img {
        height: 120px;
    }

    .titulo h2 {
        font-size: 7.5rem;
    }

    .pais .flags img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
    }

    .left{
        padding-left: 0;
        text-align: center;
    }

    .logos{
        justify-content: center;
    }

    .divider{
        height: 80px;
    }

    .logos img{
        height: 80px;
    }
    .titulo h2 {
        font-size: 4.5rem;
    }

    .right{
        margin-right: 0;
    }

    .pais .title {
        font-size: 2.8rem;
    }

    .pais .flags {
        gap: 20px;
    }

    .pais .flags img {
        width: 50px;
        height: 50px;
    }

    .pais .flags p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .divider{
        height: 70px;
    }

    .logos img{
        height: 70px;
    }

    .titulo h2 {
        font-size: 4.2rem;
    }

}