: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: 506px;
    background-image: url(../assets/SILOS.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*CONTACTOS*/
/*UBICACION*/

.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.section-ubicacion {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.formulario {
    width: 100%;
    max-width: 700px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contacto h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: bold;
}

.formulario form {
    display: flex;
    flex-direction: column;
}

.formulario label {
    margin-bottom: 8px;
    font-weight: bold;
}

.formulario input,
textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 16px;
    width: 100%;
    margin: 1% auto;
}

.formulario input:focus,
textarea:focus {
    border-color: #0066cc;
    outline: none;
}

.formulario button {
    padding: 12px;
    width: 50%;
    margin: auto;
    background-color: black;
    color: white;
    border: none;
    border-radius: 56px;
    cursor: pointer;
    font-size: 16px;
}

.formulario button:hover {
    background-color: #363738;
}

.ubicacion {
    display: flex;
    justify-content: center;
    align-content: center;
    width: 100%;
    margin: 0 auto;
}

/*CONTACTO*/

.contacto-global {
    margin-top: 5%;
    display: flex;
    gap: 70px;
}


.telefono {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.telefono h4 {
    padding-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.telefono p {
    padding-bottom: 10px;
}

.email {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.email h4 {
    padding-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.email p {
    padding-bottom: 3px;
    display: flex;
}

.iconos {
    margin-right: 10px;
}


/*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;
}

.telefono a {
    display: inline-block;
    /* Cambiar a inline-block */
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.telefono a:hover {
    transform: scale(1.1);
}

.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.1);
}

.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;
}


.email p {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email p a {
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.email p a:hover {
    transform: scale(1.1);
}




/*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;
        margin-top: 14%;
    }

    .section-ubicacion iframe {
        width: 100%;
        height: 300px;
    }

    .formulario {
        max-width: 100%;
        padding: 10px;
    }

    input,
    textarea {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }

    .contacto-global {
        flex-direction: column;
        /* Apila las secciones una sobre otra en pantallas pequeñas */
        gap: 30px;
        /* Reduce el espacio entre las secciones */
    }

    .telefono,
    .email {
        width: 100%;
        /* Ocupa el 100% del ancho en pantallas pequeñas */
    }

    .telefono h4,
    .email h4 {
        font-size: 18px;
        /* Ajusta el tamaño de la fuente */
    }


    .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 */
    }

}

@media (min-width:320px) and (max-width: 480px) {

    .footer {
        width: 100%;
    }

    .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;
    }

    .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;
    }

    .inferior-info p .ubi {
        display: flex;
        margin-left: 12%;
    }

    .telefono p {
        margin: 0 auto;
    }

    .email p {
        margin: auto 50px;
        display: flex;
        width: 50%;
    }

    .presentation {
        background-image: url(../assets/SILOS\(MOBILE\).webp);
        margin-top: 24%;
    }

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