:root{
    --color-primario: rgb(12,53,45);
    --color-secundario: rgb(255, 241, 241);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: Arial, sans-serif;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500px;
    font-family: sans-serif;
    padding: 10px 15%;
    background-color: var(--color-primario);
}

nav a {
    text-decoration: none !important;
    color: white !important;
    position: relative;
    border-bottom: none !important; /* Utiliza !important para asegurarte de que este estilo se aplique */
    outline: none; /* Elimina el contorno al hacer clic en el enlace */
    box-shadow: none; /* Elimina cualquier sombra alrededor del enlace */
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -3px;
    /* Ajusta el tamaño de la línea según sea necesario */
    left: 0;
    width: 100%;
    height: 2px;
    /* Ajusta el grosor de la línea según sea necesario */
    background-color: black;
}


nav .logo{
    height: 5rem;
    color: var(--color-primario);
}

.list {
    display: flex;
    list-style: none;
    gap: 25px;
}

#toggler,
label {
    display: none;
}

label i {
    color: black;
}

label img {
    height: 40px;
    width: 40px;
}

/* Estilo para la imagen x-blanca */
.x-blanca {
    width: 60px;
    height: 60px;
}

/* Sección de presentación */
.presentation {
    width: 100%;
    height: 306px;
    background-color: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txt {
    text-align: left;
    color: white;
    max-width: 600px;
    margin-left: -40%;
}

.txt h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: black;
    font-weight: bold;
}

.txt p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: black;
}

/* Sección imagen y texto */
.image-text-section {
    display: flex;
    align-items: center;
    gap: 8%;
    padding: 40px 10%;
    background-color: white;
}

.image-container img {
    width: 394px;
    height: 382px;
    object-fit: cover;
    border-radius: 8px;
}

.text-container {
    max-width: 800px;
}

.text-container p {
    font-size: 1.1rem;
    color: var(--color-primario);
    line-height: 1.6;
    margin-left: 20%;
}

/*SEGUNDA SECCION*/
.section-button{
    background-color: #d9d9d9;
    display: flex;
    align-items: center;
    gap: 15%;
    padding: 40px 10%;
    width: 100%;
    height: auto;
}

.container-parrafo h3{
    font-size: 36px;
    margin-top: 5%;
}

.container-img img{
    width: 394px;
    height: 382px;
    object-fit: cover;
    border-radius: 8px;
}

.container-parrafo .btn{
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border-radius: 56px;
    border: none;
    text-decoration: none;
    width: 150px;
    height: 50px;
    margin: 5% 0 5% 0;
    font-size: 16px;
    cursor: pointer;
}

.btn a{
    text-decoration: none;
    color: white;
}

.container-parrafo .btn:hover{
    background-color: rgb(36, 35, 35);
}

/*FOOTER*/
.footer {
    width: 100%;
}

.footer-gral {
    background-color: black;
    color: white;
    padding: 3rem 1rem;
}

.general {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.general h2 {
    font-size: 2.5rem;
    font-weight: bold;
}


.general .linea1 {
    width: 400px;
    height: 2px;
    background-color: white;
}

.general .linea2 {
    width: 400px;
    height: 2px;
    background-color: white;
}

.inferior-one {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20rem;
    margin-top: -4%;
}

.inferior-info {
    text-align: center;
}

.inferior-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    font-weight: bold;
}


.inferior-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.inferior-info p{
    margin-bottom: 0.5rem;
}

.email-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 5px;
}


.inferior-info a:hover {
    transform: scale(1.2);
}

.footer .parrafo {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}






/*RESPONSIVE */
@media screen and (max-width: 770px) {

    .menu {
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

    label {
        display: inline-flex;
    }

    #toggler:checked~.menu {
        max-height: 100%;
    }

    .list {
        flex-direction: column;
        align-items: center;
        padding: 25px;
        transition: all;
    }

    nav .logo{
        width: 80px;
        height: 80px;
    }

    .presentation img{
        width: 100%;
        margin: 0;
    }

    .presentation::before{
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .presentation{
        height: 300px;
    }

    .txt{
        margin: auto;
    }

    .txt h1 {
        font-size: 1.1rem;
        text-align: center;
    }

    .txt p {
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    /* Ajuste de imagen y texto en móviles */
    .image-text-section {
        flex-direction: column;
        padding: 20px 5%;
        text-align: center;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }

    .text-container {
        max-width: 100%;
    }

    .text-container p{
        margin-left: 0;
    }

    .section-button{
        display: flex;
        flex-direction: column-reverse;
    }

    .section-button img{
        width: 100%;
        height: auto;
    }

    .container-parrafo h3{
        text-align: center;
        font-size: 25px;
        margin-top: 20%;
    }

    .container-parrafo .btn{
        margin: 6% 25%;
    }

    .footer{
        display: flex;
        flex-direction: column;
    }

    header nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
    }
    
    .presentation{
        margin-top: 14%;
    }
}

/* Para pantallas medianas, como tablets (768px a 1024px) */
@media (max-width: 1024px) {
    .menu {
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

    label {
        display: inline-flex;
    }

    #toggler:checked~.menu {
        max-height: 100%;
    }

    .list {
        flex-direction: column;
        align-items: center;
        padding: 25px;
        transition: all;
    }

    nav .logo{
        width: 80px;
        height: 80px;
    }

    .presentation img{
        width: 100%;
        margin: 0;
    }

    .presentation::before{
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .presentation{
        height: 300px;
    }

    .txt{
        margin: auto;
    }

    .txt h1 {
        font-size: 1.9rem;
        text-align: center;
        width: 90%;
        margin: 0 auto;
        margin-bottom: 3%;
        font-weight: bold;
    }

    .txt p {
        font-size: 1.1rem;
        width: 90%;
        text-align: center;
        margin: 0 auto;
    }

    /* Ajuste de imagen y texto en móviles */
    .image-text-section {
        flex-direction: column;
        padding: 20px 5%;
        text-align: center;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }

    .text-container {
        max-width: 100%;
    }

    .text-container p{
        margin-left: 0;
        padding: 40px 0;
    }
}

@media (min-width:320px) and (max-width: 480px) {
    .text {
        font-size: 1rem; /* Más pequeño aún para pantallas móviles pequeñas */
    }

    .footer{
        width: 100%;
    }

    .footer-gral{
        background-color: black;
        color: white;
        display: flex;
        flex-direction: column;
        }

    .general{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .general .linea1{
        width: 200px;
    }

    .general .linea2{
        width: 200px;
    }

    .inferior-one{
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .inferior-info{
        margin: 6% 0;
    }

    .inferior-info h3{
        font-size: 1rem;
        display: flex;
        justify-content: center;
    }

    .inferior-info p{
        font-size: 0.9rem;
    }

    .parrafo{
        justify-content: center;
        text-align: center;
        padding: 20px;
        font-size: 12px;
        font-weight: bold;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    header nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
    }
    
    .presentation{
        margin-top: 24%;
    }

}