

/* ---------------------------------------------------- Estilos genericos ---------------------------------------------------- */
/* Titulos de cada seccion */

.section-title {
    margin-top: 2vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    /* Azul marino */
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 5vw;
    height: 3px;
    background: #ff7043;
    /* Naranja */
    margin: 10px auto;
}



/* --------------------------- Hero / Carousel --------------------------- */
.hero-banner {
    position: relative;
    height: 30%;
    color: white;
}

.carousel-item img {
    object-fit: cover;
    filter: brightness(70%);
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(50, 82, 120, 0.857), rgba(50, 82, 120, 0.052));
    pointer-events: none;
    /* Para que no bloquee clics o interacción con la imagen/carrusel */
}

.carousel-caption {
    position: absolute;
    bottom: 30%;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-family: 'Michroma';
    font-weight: bold;
    overflow: hidden;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.carousel-caption a {
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.carousel-indicators {
    display: none;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid #ff5722;
    color: white;
}

.btn-primary:hover {
    background-color: #e64a19;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #ff5722;
    color: white;
}

.btn-secondary:hover {
    background-color: #ff5722;
    color: white;
}

.custom-carousel-control {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-control-prev {
    left: calc((100% - 1200px) / 2);
    /* Ajusta este valor para que coincida con el ancho del container */
}

.carousel-control-next {
    right: calc((100% - 1200px) / 2);
    /* Ajusta este valor para que coincida con el ancho del container */
}

/* ---------------------------------------------------- Seccion Empresa ---------------------------------------------------- */
#empresa .container {
    max-width: 1200px;
    margin: 0 auto;

}

/* Sección Empresa */
.empresa {
    margin-top: 3vw;
    margin-bottom: 3vw;
}

/* Columna de texto */
.texto {
    margin: 2vw;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5; /* Interlineado */
    color: #333; /* Color del texto */
}

.texto a {
    color: black;
    text-decoration: none;
}

.texto a:hover {
    color: #325278;
}

.servicios {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;

    /* Alinea horizontalmente */
    justify-items: center;
    /* Alinea verticalmente 
      align-items: center; */

    grid-template-areas: "trabajo1     trabajo2     trabajo3     trabajo4";
    gap: 10px;
}

.servicios .reparaciones {
    grid-area: trabajo1;
}

.servicios .caldereria {
    grid-area: trabajo2;
}

.servicios .construcciones {
    grid-area: trabajo3;
}

.servicios .mantenimiento {
    grid-area: trabajo4;
}

.servicios div img {
    max-width: 15rem;
    max-height: 13rem;
    border-radius: 20px;
}

/* .reparaciones:hover,
.caldereria:hover,
.construcciones:hover,
.mantenimiento:hover{
    border: 2px solid #325278;
    border-radius: 20px;
    box-shadow: 3px 3px 5px #325278;
} */

.reparaciones,
.caldereria,
.construcciones,
.mantenimiento {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2vw 0;
}

.servicios a {
    color: black;
    text-decoration: none;
    font-size: .9rem;
}

.servicios a:hover {
    color: #325278;
}

/* ---------------------------------------------------- Guascor Energy ---------------------------------------------------- */

/* Sección con imagen fija */
.fixed-image {
    position: relative;
    height: 60%;
    /* Toma toda la altura de la pantalla */
    background: url('../image/guascor-energy.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: start;
    color: rgb(0, 0, 0);
}

/* Encabezado sobre la imagen */
.header-text {
    background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));
    padding: 10% 55% 10% 10.65%;
}

.header-text h2 {
    margin: 0;
    font-size: 2rem;
    padding-bottom: 1vw;
}

.header-text .container p {
    font-size: 1.2rem;
}

.btn-energy {
    background-color: transparent;
    border: 2px solid #ff5722;
    border-radius: 10px;
    padding: 10px;
    color: #0d4e64;
}

.btn-energy:hover {
    background-color: #ff5722;
    color: white;
}


/* ---------------------------------------------------- Contact Section ---------------------------------------------------- */

form {
    display: flex;
    flex-direction: column;
    /* Organización en columna */
    align-items: stretch;
    /* Inputs ocupan todo el ancho disponible dentro del formulario */
    position: relative;
    /* Para posicionar el botón */
    max-width: 100%;
    /* El formulario ocupará un % del ancho */
    margin: 2vw auto;
    /* Centra el formulario horizontalmente */
    gap: 1rem;
    /* Espaciado entre elementos */
    padding: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
    /* Evita problemas con padding */
    padding-bottom: 4rem;
    /* Espacio suficiente para el botón */
}

/* Estilos para los inputs y textarea */
input,
textarea {
    padding: 1rem;
    border: 1px solid #176f8c95;
    border-radius: 5px;
    font-size: 1.3vw;
    width: 100%;
    /* Se adapta al contenedor del formulario */
    box-sizing: border-box;
    /* Evita que el padding afecte el ancho */
}

input:hover,
textarea:hover {
    border: 1px solid #176f8c;
}

textarea {
    margin-bottom: 1rem;
}

/* Posición del botón */
form .btn-primary {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #0d4e64;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hover en el botón */
form .btn-primary:hover {
    border: 1px solid #0d4e64;
    background: #ff7043;
    /* Cambia el color al pasar el cursor */
}

.gracias {
    margin-top: 2vw;
    margin-bottom: 2vw;
    padding: 5vw 0;
    text-align: center;
    font-size: 2.5rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278f9;
    /* Azul marino */
    position: relative;
}

/* ---------------------------------------------------- Seccion Clientes ---------------------------------------------------- */
/* Estilo para la sección */
#clientes {
    text-align: center;
}

/* Grilla de logos */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columnas */
    grid-template-rows: repeat(2, auto);
    /* 2 filas */
    gap: 20px;
    /* Espacio entre celdas */
    justify-items: center;
    /* Centra horizontalmente las imágenes */
    align-items: center;
    /* Centra verticalmente las imágenes */
    margin: 3vw 0;
}

/* Estilo para las imágenes */
.logos-grid img {
    max-width: 80%;
    /* Escala la imagen sin salir de la celda */
    max-height: 80%;
    /* Evita deformaciones */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Asegura que la imagen esté contenida */
    transition: transform 0.3s ease-in-out;
    /* Animación suave */
}

/* Efecto hover: agrandar la imagen */
.logos-grid img:hover {
    transform: scale(1.2);
    /* Escala la imagen al 120% */
    cursor: pointer;
    /* Cambia el cursor a un dedo indicando clic */
}


/* --------------------------- Responsive Design --------------------------- */

@media (min-width:1200px) and (max-width:1350px) {

    /* ---------------------------------------------------- Estilos genericos ---------------------------------------------------- */
    /* Titulos de cada seccion */

    .section-title {
        margin-top: 2vw;
        font-size: 1.8rem;
    }

    .section-title::after {
        width: 8vw;
        height: 3px;
    }

    /* --------------------------- Hero / Carousel --------------------------- */
    .carousel-caption {
        position: absolute;
        bottom: 23%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .custom-carousel-control {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev {
        left: 10%;
        right: 90%;
    }

    .carousel-control-next {
        left: 90%;
        right: 10%;
    }

    /* ---------------------------------------------------- Seccion Empresa ---------------------------------------------------- */
    #empresa .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Sección Empresa */
    .empresa {
        margin-top: 3vw;
        margin-bottom: 3vw;
    }

    .empresa-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6vw;
        align-items: stretch;
    }

    /* Columna de texto */
    .texto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        font-size: 1rem;

    }


    .servicios {
        display: grid;

        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;

        /* Alinea horizontalmente */
        justify-items: center;
        /* Alinea verticalmente 
          align-items: center; */

        grid-template-areas: "trabajo1     trabajo2     trabajo3     trabajo4";
        margin-bottom: 2vw;
        gap: 10px;
    }

    .servicios div img {
        max-width: 15rem;
        max-height: 10rem;
        border-radius: 20px;
    }

    .reparaciones,
    .caldereria,
    .construcciones,
    .mantenimiento {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 2vw 0;
        text-align: center;
    }

    .servicios h3 {
        font-size: 1.3rem;
    }

    .servicios p {
        font-size: .9rem;
    }

    .servicios a {
        font-size: .8rem;
    }

    .servicios a:hover {
        color: #325278;
    }

    /* ---------------------------------------------------- Guascor Energy ---------------------------------------------------- */

    /* Sección con imagen fija */
    .fixed-image {
        position: relative;
        height: 60%;
        /* Toma toda la altura de la pantalla */
        background: url('../image/guascor-energy.jpeg') no-repeat center center fixed;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: start;
        color: rgb(0, 0, 0);
    }

    /* Encabezado sobre la imagen */
    .header-text {
        background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));
        padding: 10% 55% 10% 6.7%;
    }

    .header-text h2 {
        margin: 0;
        font-size: 1.8rem;
        padding-bottom: 1vw;
    }

    .header-text .container p {
        font-size: 1rem;
    }

    .btn-energy {
        background-color: transparent;
        border: 2px solid #ff5722;
        border-radius: 10px;
        padding: 8px;
        color: #0d4e64;
    }

    .btn-energy:hover {
        background-color: #ff5722;
        color: white;
    }


    /* ---------------------------------------------------- Seccion Clientes ---------------------------------------------------- */

    .logos-grid {
        gap: 10px;
        margin: 1vw 0;
    }

    .logos-grid img {
        max-width: 75%;
        max-height: 75%;
    }

    .gracias {
        margin-top: 2vw;
        margin-bottom: 2vw;
        padding: 5vw 0;
        text-align: center;
        font-size: 2.2rem;
        font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
        color: #325278f9;
        /* Azul marino */
        position: relative;
    }
}

@media (min-width:992px) and (max-width:1200px) {

    /* ---------------------------------------------------- Estilos genericos ---------------------------------------------------- */
    /* Titulos de cada seccion */

    .section-title {
        margin-top: 2vw;
        font-size: 1.8rem;
    }

    .section-title::after {
        width: 8vw;
        height: 3px;
    }

    /* --------------------------- Hero / Carousel --------------------------- */
    .carousel-caption {
        position: absolute;
        bottom: 23%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .custom-carousel-control {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev {
        left: 10%;
        right: 90%;
    }

    .carousel-control-next {
        left: 90%;
        right: 10%;
    }

    /* ---------------------------------------------------- Seccion Empresa ---------------------------------------------------- */
    #empresa .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Sección Empresa */
    .empresa {
        margin-top: 3vw;
        margin-bottom: 3vw;
    }

    .empresa-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6vw;
        align-items: stretch;
    }

    /* Columna de texto */
    .texto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        font-size: 1rem;

    }

    .servicios {
        display: grid;

        grid-template-columns: repeat(4, 25%);
        grid-template-rows: 1fr;
        justify-items: center;
        grid-template-areas: "trabajo1     trabajo2     trabajo3     trabajo4";
        margin-bottom: 2vw;
    }

    .servicios div img {
        max-width: 15rem;
        max-height: 10rem;
        border-radius: 20px;
    }

    .reparaciones,
    .caldereria,
    .construcciones,
    .mantenimiento {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 2vw 0;
        text-align: center;
    }

    .servicios h3 {
        font-size: 1.3rem;
    }

    .servicios p {
        font-size: .8rem;
    }

    .servicios a {
        font-size: .8rem;
    }

    .servicios a:hover {
        color: #325278;
    }

    /* ---------------------------------------------------- Guascor Energy ---------------------------------------------------- */

    /* Sección con imagen fija */
    .fixed-image {
        position: relative;
        height: 60%;
        /* Toma toda la altura de la pantalla */
        background: url('../image/guascor-energy.jpeg') no-repeat center center fixed;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: start;
        color: rgb(0, 0, 0);
    }

    /* Encabezado sobre la imagen */
    .header-text {
        background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));
        padding: 10% 55% 10% 6.7%;
    }

    .header-text h2 {
        margin: 0;
        font-size: 1.8rem;
        padding-bottom: 1vw;
    }

    .header-text .container p {
        font-size: 1rem;
    }

    .btn-energy {
        background-color: transparent;
        border: 2px solid #ff5722;
        border-radius: 10px;
        padding: 8px;
        color: #0d4e64;
    }

    .btn-energy:hover {
        background-color: #ff5722;
        color: white;
    }


    /* ---------------------------------------------------- Seccion Clientes ---------------------------------------------------- */

    .logos-grid {
        gap: 10px;
        margin: 1vw 0;
    }

    .logos-grid img {
        max-width: 75%;
        max-height: 75%;
    }

    .gracias {
        margin-top: 2vw;
        margin-bottom: 2vw;
        padding: 5vw 0;
        text-align: center;
        font-size: 2.2rem;
        font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
        color: #325278f9;
        /* Azul marino */
        position: relative;
    }
}

@media (min-width:768px) and (max-width:992px) {
    /* ---------------------------------------------------- Estilos genericos ---------------------------------------------------- */
    /* Titulos de cada seccion */

    .section-title {
        margin-top: 2vw;
        text-align: center;
        font-size: 1.5rem;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 8vw;
        height: 2px;
        margin: 10px auto;
    }

    /* --------------------------- Hero / Carousel --------------------------- */

    .carousel-caption {
        position: absolute;
        bottom: 17%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .custom-carousel-control {
        width: 25px;
        height: 25px;
    }

    .carousel-control-prev {
        left: 15%;
        right: 85%;
    }

    .carousel-control-next {
        left: 85%;
        right: 15%;
    }

    /* ---------------------------------------------------- Seccion Empresa ---------------------------------------------------- */
    #empresa .container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px;
    }

    .empresa .section-title {
        margin-top: 2vw;
        text-align: center;
        font-size: 1.7rem;
    }

    /* Columna de texto */
    .texto {
        font-size: 1rem;
    }

    .servicios {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: center;
        grid-template-areas: "trabajo1     trabajo2"
            "trabajo3     trabajo4";
        margin-bottom: 2vw;
    }

    .servicios div img {
        max-width: 15rem;
        max-height: 10rem;
        border-radius: 20px;
    }

    .reparaciones,
    .caldereria,
    .construcciones,
    .mantenimiento {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 2vw 0;
        text-align: center;
    }

    .servicios h3 {
        font-size: 1.3rem;
    }

    .servicios p {
        font-size: .8rem;
    }

    .servicios a {
        font-size: .8rem;
    }

    .servicios a:hover {
        color: #325278;
    }

    /* ---------------------------------------------------- Guascor Energy ---------------------------------------------------- */

    /* Sección con imagen fija */
    .fixed-image {
        position: relative;
        height: 60%;
        /* Toma toda la altura de la pantalla */
        background: url('../image/guascor-energy.jpeg') no-repeat center center fixed;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: start;
        color: rgb(0, 0, 0);
    }

    /* Encabezado sobre la imagen */
    .header-text {
        background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));
        padding: 10% 55% 10% 13%;
    }

    .header-text h2 {
        margin: 0;
        font-size: 1.6rem;
        padding-bottom: 1vw;
    }

    .header-text .container p {
        font-size: 1rem;
    }

    .btn-energy {
        background-color: transparent;
        border: 2px solid #ff5722;
        border-radius: 10px;
        padding: 8px;
        font-size: 1rem;
    }

    .btn-energy:hover {
        background-color: #ff5722;
        color: white;
    }


    /* ---------------------------------------------------- Contact Section ---------------------------------------------------- */

    form {
        display: flex;
        flex-direction: column;
        /* Organización en columna */
        align-items: stretch;
        /* Inputs ocupan todo el ancho disponible dentro del formulario */
        position: relative;
        /* Para posicionar el botón */
        max-width: 100%;
        /* El formulario ocupará un % del ancho */
        margin: 0 auto;
        /* Centra el formulario horizontalmente */
        gap: 1rem;
        /* Espaciado entre elementos */
        padding: 1rem;
        border-radius: 8px;
        box-sizing: border-box;
        /* Evita problemas con padding */
        padding-bottom: 4rem;
        /* Espacio suficiente para el botón */
    }

    /* Estilos para los inputs y textarea */
    input,
    textarea {
        padding: 1rem;
        border: 1px solid #176f8c;
        border-radius: 5px;
        font-size: 1.3vw;
        width: 100%;
        /* Se adapta al contenedor del formulario */
        box-sizing: border-box;
        /* Evita que el padding afecte el ancho */
    }

    textarea {
        margin-bottom: 1rem;
    }

    /* Posición del botón */
    form button {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.5rem;
        background: #0d4e64;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
    }

    /* Hover en el botón */
    form button:hover {
        border: 1px solid #0d4e64;
        background: #ff7043;
        /* Cambia el color al pasar el cursor */
    }

    .gracias {
        margin-top: 2vw;
        margin-bottom: 2vw;
        padding: 5vw 0;
        text-align: center;
        font-size: 1.6rem;
        font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
        color: #325278f9;
        /* Azul marino */
        position: relative;
    }

    /* ---------------------------------------------------- Seccion Clientes ---------------------------------------------------- */
    /* Estilo para la sección */
    #clientes {
        text-align: center;
    }

    /* Grilla de logos */
    .logos-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        /* 5 columnas */
        grid-template-rows: repeat(2, auto);
        /* 2 filas */
        gap: 20px;
        /* Espacio entre celdas */
        justify-items: center;
        /* Centra horizontalmente las imágenes */
        align-items: center;
        /* Centra verticalmente las imágenes */
        margin: 1vw 0;
    }

    /* Estilo para las imágenes */
    .logos-grid img {
        max-width: 80%;
        /* Escala la imagen sin salir de la celda */
        max-height: 80%;
        /* Evita deformaciones */
        width: auto;
        height: auto;
        object-fit: contain;
        /* Asegura que la imagen esté contenida */
        transition: transform 0.3s ease-in-out;
        /* Animación suave */
    }

    /* Efecto hover: agrandar la imagen */
    .logos-grid img:hover {
        transform: scale(1.2);
        /* Escala la imagen al 120% */
        cursor: pointer;
        /* Cambia el cursor a un dedo indicando clic */
    }

}

@media (min-width:450px) and (max-width:768px) {

    /* ---------------------------------------------------- Estilos genericos ---------------------------------------------------- */
    /* Titulos de cada seccion */
    .section-title {
        margin-top: 2vw;
        text-align: center;
        font-size: 1.2rem;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 8vw;
        height: 2px;
        margin: 10px auto;
    }

    /* --------------------------- Hero / Carousel --------------------------- */
    .hero-banner {
        margin-top: 10vw;
    }

    .carousel-caption {
        position: absolute;
        bottom: 20%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 1.7rem;
    }

    .carousel-caption h2 {
        font-size: 1.4rem;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .carousel-caption a {
        padding: 5px 10px;
        margin: 3px;
        border-radius: 5px;
        text-decoration: none;
        display: inline-block;
        font-size: .8rem;
    }

    .custom-carousel-control {
        width: 25px;
        height: 25px;
    }

    .carousel-control-prev {
        left: 15%;
        right: 85%;
    }

    .carousel-control-next {
        left: 85%;
        right: 15%;
    }


    /* ---------------------------------------------------- Seccion Empresa ---------------------------------------------------- */

    #empresa .container {
        max-width: 1000px;
        margin: 0 auto;

    }

    .empresa-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* Cambiamos a una sola columna */
        grid-template-rows: auto auto;
        /* Definimos dos filas automáticas */
        gap: 0;
        align-items: center;
    }

    .empresa .section-title {
        margin-top: 2vw;
        text-align: center;
        font-size: 1.5rem;
    }

    .empresa {
        margin-bottom: 1vw;
    }

    .texto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;

        padding-bottom: 0;
        font-size: 1.8vw;
    }

    .servicios {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: center;
        grid-template-areas: "trabajo1     trabajo2"
            "trabajo3     trabajo4";
        margin-bottom: 2vw;
    }

    .servicios div img {
        max-width: 13rem;
        max-height: 8rem;
        border-radius: 20px;
    }

    .reparaciones,
    .caldereria,
    .construcciones,
    .mantenimiento {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 2vw 0;
        text-align: center;
    }

    .servicios h3 {
        font-size: 1.2rem;
    }

    .servicios p {
        font-size: .8rem;
    }

    .servicios a {
        font-size: .7rem;
    }

    .servicios a:hover {
        color: #325278;
    }

    /* ---------------------------------------------------- Guascor Energy ---------------------------------------------------- */


    .fixed-image {
        height: 60%;
    }

    .header-text {
        padding: 10% 50% 10% 14.7%;
    }

    .header-text h2 {
        margin: 0;
        font-size: 1.5rem;
        padding-bottom: 1vw;
    }

    .header-text .container p {
        font-size: 1.8vw;
    }

    .btn-energy {
        border-radius: 10px;
        padding: 5px;
        font-size: .8rem;
    }

    .btn-energy:hover {
        background-color: #ff5722;
        color: white;
    }


    /* ---------------------------------------------------- Contact Section ---------------------------------------------------- */

    form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        max-width: 100%;
        margin: 0 auto;
        gap: 0;
        padding: 1rem;
        border-radius: 8px;
        box-sizing: border-box;
        padding-bottom: 4rem;
    }

    input,
    textarea {
        padding: 1rem;
        border: 1px solid #176f8c;
        border-radius: 5px;
        font-size: .8rem;
        width: 100%;
        box-sizing: border-box;
    }

    textarea {
        margin-bottom: 1rem;
    }

    /* Posición del botón */
    form button {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
        font-size: .8rem;
    }

    .gracias {
        margin-top: 2vw;
        margin-bottom: 2vw;
        padding: 5vw 0;
        text-align: center;
        font-size: 1.1rem;
        font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
        color: #325278f9;
        /* Azul marino */
        position: relative;
    }

    /* ---------------------------------------------------- Seccion Clientes ---------------------------------------------------- */
    /* Estilo para la sección */
    #clientes {
        text-align: center;
    }

    .logos-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 10px;
        justify-items: center;
        align-items: center;
        margin: 3vw 0;
    }

    .logos-grid img {
        max-width: 90%;
        max-height: 90%;
        width: auto;
        height: auto;
    }

}

@media (max-width:450px) {
    /* ---------------------------------------------------- Estilos genericos ---------------------------------------------------- */
    /* Titulos de cada seccion */

    .section-title h2 {
        margin-top: 3vw;
        text-align: center;
        font-size: 1.3rem;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 10vw;
        height: 2px;
        margin: 5px auto;
    }

    /* --------------------------- Hero / Carousel --------------------------- */
    .hero-banner {
        margin-top: 3.2rem;
    }

    .carousel-caption {
        position: absolute;
        bottom: 10%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
    }

    .carousel-caption h2 {
        font-size: 1rem;
        margin: 1vw;
    }

    .carousel-caption p {
        font-size: .8rem;
        margin-bottom: 5px;
    }

    .carousel-caption a {
        padding: 2px 6px;
        margin: 0;
        border-radius: 5px;
        text-decoration: none;
        display: inline-block;
        font-size: .7rem;
    }

    .custom-carousel-control {
        width: 15px;
        height: 15px;
    }

    .carousel-control-prev {
        left: 6%;
        right: 95%;
    }

    .carousel-control-next {
        left: 90%;
        right: 15%;
    }


    /* ---------------------------------------------------- Seccion Empresa ---------------------------------------------------- */

    #empresa .container {
        max-width: 400px;
        margin: 0 auto;
    }

    .empresa-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* Cambiamos a una sola columna */
        grid-template-rows: auto auto;
        /* Definimos dos filas automáticas */
        gap: 0;
        align-items: center;
        padding: 0 4.5vw;
        margin: 4vw 0;
    }

    .empresa {
        margin-bottom: 1vw;
    }

    .empresa .section-title {
        margin-top: 2vw;
        text-align: center;
        font-size: 1.3rem;
    }

    .texto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: justify;

        padding-bottom: 0;
        font-size: .8rem;
    }

    .servicios {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: center;
        grid-template-areas: "trabajo1     trabajo2"
            "trabajo3     trabajo4";
        margin-bottom: 2vw;
    }

    .servicios div img {
        max-width: 11rem;
        max-height: 7rem;
        border-radius: 20px;
    }

    .reparaciones,
    .caldereria,
    .construcciones,
    .mantenimiento {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 2vw 0;
        text-align: center;
    }

    .servicios h4 {
        font-size: 1rem;
    }

    .servicios p {
        font-size: .8rem;
    }

    .servicios a {
        font-size: .6rem;
    }

    .servicios a:hover {
        color: #325278;
    }
    .reparaciones p,
    .caldereria p,
    .construcciones p {
        margin-bottom: 1.3rem;
    }


    /* ---------------------------------------------------- Guascor Energy ---------------------------------------------------- */


    .fixed-image {
        height: 60%;
    }

    .header-text {
        padding: 10% 50% 10% 4%;
    }

    .header-text h2 {
        margin: 0;
        font-size: 1.3rem;
        padding-bottom: 1vw;
    }

    .header-text .container p {
        font-size: .8rem;
    }

    .btn-energy {
        border-radius: 10px;
        padding: 5px;
        font-size: .6rem;
    }

    .btn-energy:hover {
        background-color: #ff5722;
        color: white;
    }

    /* ---------------------------------------------------- Contact Section ---------------------------------------------------- */

    form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        max-width: 90%;
        margin: 0 auto;
        gap: 0;
        padding: 1rem;
        border-radius: 8px;
        box-sizing: border-box;
        padding-bottom: 4rem;
    }

    input,
    textarea {
        padding: 1rem;
        border: 1px solid #176f8c;
        border-radius: 5px;
        font-size: .8rem;
        width: 100%;
        box-sizing: border-box;
    }

    textarea {
        margin-bottom: 0;
    }

    /* Posición del botón */
    form .btn-primary {
        position: absolute;
        padding: .4rem;
        font-size: .7rem;
    }

    .gracias {
        margin-top: 2vw;
        margin-bottom: 2vw;
        padding: 5vw 0;
        text-align: center;
        font-size: .7rem;
        font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
        color: #325278f9;
        /* Azul marino */
        position: relative;
    }

    /* ---------------------------------------------------- Seccion Clientes ---------------------------------------------------- */
    /* Estilo para la sección */
    #clientes {
        text-align: center;
    }

    .logos-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        justify-items: center;
        align-items: center;
        margin: 3vw 3vw;
    }

    .logos-grid img {
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
    }

}

@media (max-width:380px) {

    .reparaciones p,
    .caldereria p,
    .construcciones p {
        margin-bottom: 3.5rem;
    }
}