/* 1. Solución de raíz para el box-sizing en toda la página */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box; /* Ahora sí, todos los elementos calculan su ancho correctamente */
}

/* 2. Bloqueo total de desbordamiento en ambos contenedores raíz */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Camp';
}

nav{
    width: 100%;
    height: auto;
    display: flex;
    background-color:#2d4754;
    
}

nav ul {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
}

li a{
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    padding: 20px 20px;
    border-radius: 35px;
    border: 1px solid #ffffff;
    text-transform: uppercase;
}

li a img{
    width: 100px;
}

#log a{
    border: none;
}

/* Hero Banner */

main{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-image: url(/assets/img/bgHeader.png);
    background-size: cover;
    background-position: center;
    flex-direction: column;
}

.mainContentPrior{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainContentVideo{
    width: 50%;
    height: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mainContentVideo video{
    border-radius: 2rem;
}

video{
    width: 100%;
    height: auto;
    object-fit: cover;
}

.mainContentText{
    width: 35%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    padding: 5rem 2rem;
}
 .mainContentText h1{
    font-size: 4rem;
    text-align:start;
    margin-bottom: 1rem;
}

.mainContentForm{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
}

/* --- RESPONSIVE --- */

/* Laptops pequeñas / tablets grandes */
@media (max-width: 1024px) {
    li a{
        font-size: 1rem;
        padding: 14px 14px;
    }

    li a img{
        width: 80px;
    }

    .mainContentText{
        width: 45%;
        padding: 3.5rem 1.5rem;
    }

    .mainContentText h1{
        font-size: 3rem;
    }

    .mainContentVideo{
        width: 55%;
    }
}

/* Tablets */
@media (max-width: 768px) {
    nav ul{
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    li a{
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    li a img{
        width: 65px;
    }

    .mainContentPrior{
        flex-direction: column;
    }

    .mainContentText{
        width: 90%;
        padding: 2.5rem 1.5rem 1rem 1.5rem;
        align-items: center;
    }

    .mainContentText h1{
        font-size: 2.25rem;
        text-align: center;
    }

    .mainContentVideo{
        width: 90%;
        padding: 1rem 0;
    }
}

/* Celulares medianos */
@media (max-width: 480px) {
    li a{
        font-size: 0.75rem;
        padding: 8px 10px;
        border-radius: 20px;
    }

    li a img{
        width: 55px;
    }

    .mainContentText{
        width: 100%;
        padding: 2rem 1.25rem 0.75rem 1.25rem;
    }

    .mainContentText h1{
        font-size: 1.75rem;
    }

    .mainContentText p{
        font-size: 0.95rem;
        text-align: center;
    }

    .mainContentVideo{
        width: 100%;
        padding: 0.75rem 0;
    }

    .mainContentVideo video{
        border-radius: 1rem;
    }
}

/* Celulares muy pequeños */
@media (max-width: 360px) {
    .mainContentText h1{
        font-size: 1.5rem;
    }

    li a{
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}