/*GENERALES*/
* {
    margin: 0;
}

h2 {
    font-family: 'EB Garamond';
    font-size: 44px;
    color: #31A8D7;
    padding-bottom: 50px;
    text-transform: uppercase;
}

h3 {
    font-family: 'EB Garamond';
    font-size: x-large;
    color: white;
    padding-bottom: 30px;
    font-variant: small-caps;
}

p {
    font-family: 'EB Garamond';
    font-size: 22px;
    color: white;
    padding-bottom: 80px;
}

/*BARRA DE NAVEGACION*/
.fondo-nav {
    background-color: black;
}

.nav-link {
    padding: 20px 36px !important;
    color: #31A8D7;
}

nav {
    font-family: 'EB Garamond';
    font-size: large;
    color: white;
}

.fondo-nav {
    background-color: black;
    margin: 0;
}

.nav-link:hover,
.active .nav-link {
    color: white;
    font-weight: bolder;
}



.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*HEADER*/
header img {
    width: 600px;
    margin-bottom: 280px;
    margin-top: 150px;
}

header {
    background-image: url(../Imagenes/bg-header.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

/*NOSOTROS*/
.nosotros {
    background-color: black;
    background-image: url(../Imagenes/bg-nosotros.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    margin-bottom: 0;
    padding-bottom: 0;

}

.nosotros p {
    margin-bottom: 300px;
}

/*SERVICIOS*/
.servicios {
    background-image: linear-gradient(#00e39d 10%, #021D6B 90%);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    border: none;

}

.servicios h2 {
    color: black;
    font-variant: small-caps;
    padding-top: 100px;
}

.intro-servicios p {
    font-style: italic;
    font-size: 30px;
}

.servicios img {
    width: 250px;
    padding-bottom: 30px;
}

.servicios p {
    padding: 0, 30px;
    padding-bottom: 80px;
}

/*COMERCIALIZADORA*/
.comercializadora {

    background-image: url(../Imagenes/bg-comercializadora.jpg);
    border-color: none;
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    padding-top: 280px;
    padding-bottom: 200px;
    position: relative;
    /* Asegura que esta sección se posicione en el flujo */
    z-index: 1;
    /* Mantén esta sección debajo de Contacto */

}

.contenerdor-comer {
    margin: 0;
}

/* CONTACTO*/
.contacto {

    background-image: url(../Imagenes/bg-contacto.png);
    background-repeat: none;
    background-position: top;
    background-size: cover;
    margin-top: -140px;
    position: relative;
    /* Necesario para el z-index */
    z-index: 3;
    /* Apila esta sección por encima de Comercializadora */
    margin-top: -200px;
    /* Superpone esta sección ligeramente sobre Comercializadora */
    padding-top: 100px;
    /* Ajusta el espacio interno */
    padding-bottom: 150px;
    /* Añade espacio inferior */
}

.contenedor-contacto {
    padding-top: 60px;
}

.contacto h2 {
    color: white;
}

.icono img {
    width: 60px;
    padding-right: 10px;
}

.icono {
    font-family: 'EB Garamond';
    font-size: 22px;
    color: white;
    padding-bottom: 40px;
    text-align: center;
}

/*FOOTER*/

footer {
    background-color: black;
    color: white;
    padding-top: 50px;
}

footer p {
    font-size: medium;
    padding-bottom: 30px;
}

footer img {
    width: 80px;
}

/*__________________________________MEDIA QUERIES______________________________*/
/*MEDIA QUERY*/
@media (max-width: 520px) {
    .comercializadora h2 {
        font-size: 1.9rem;
        /* Reduce el tamaño del texto */
        line-height: 1.2;
        /* Ajusta el espacio entre líneas */

    }
}

/* Ajustes para pantallas aún más pequeñas */
@media (max-width: 375px) {
    .comercializadora h2 {
        font-size: 1.7rem;
        /* Reduce aún más el tamaño */
    }
}