* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-size: 100%;
    vertical-align: baseline;
}

body {
    text-align: center;
    font-family: sans-serif;
    background-color: #e0f7fa;
    width: 100%;
    overflow-x: hidden;
    font-size: 100%;
    margin-top: 5rem;
    min-height: 100vh;
}

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem; 
    background: #003366;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 0 1rem;
}

.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 200;
}

.menu-toggle-label .bar {
    display: block;
    width: 2rem;
    height: 0.2rem;
    background-color: #fff;
    margin: 0.3rem 0;
    transition: 0.3s;
}

/* Estilos del menú principal */
.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    text-align: left;
    white-space: nowrap;
    font-size: 1.55rem;
}

.navbar a:hover {
    background: #005b99;
}


.navbar-hamburguesa {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 4rem;
    right: 1rem;
    width: auto;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    z-index: 150;
}

.navbar-hamburguesa a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    text-align: left;
    white-space: nowrap;
}

.navbar-hamburguesa a:hover {
    background: #005b99;
    padding-left: 0.6rem;
    transition: 0.3s;
}

/* Estilos cuando el checkbox está marcado */

.menu-toggle-checkbox:checked + .menu-toggle + .navbar {
    display: flex;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 4rem;
    object-fit: contain;
}

.header {
    height: 100vh;
    background: url(images/Otros/fondos/headerosc1.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    margin-bottom: 1rem;
    font-size: 3rem;
    flex-direction: column;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 4px 4px 8px rgba(255, 255, 255, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 6px rgb(255, 255, 255, 0.2);
}

section.content.header{
    display: flex;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    background-color: #e0f7fa;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #004d80;
    padding: 0 1rem;
}

.btn, .btnInicio {
    display: inline-block;
    padding: 0.5rem 2rem;
    border: 2px solid #0077b6;
    transition: background-color 0.3s ease;
    border-radius: 0.5rem;
    color: #fff;
    text-decoration: none;
    background: #0077b6;
}

.btn:hover, .btnInicio:hover {
    background-color: #00bfff;
    color: #003366;
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.box-row {
    display: flex;
    flex-wrap: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.box-row h3{
    font-size: 1.5rem;
}
.box-container .box1, .box-container .box2, .box-container .box3, .box-container .box4 {
    background: #00336670;
    text-align: center;
    border: 5px solid #0056b3;
    border-radius: 1rem;
    box-shadow: 0 .3rem 2rem rgba(255, 255, 255, 0.302);
    padding: 1rem;
    width: 15rem;
    height: 12rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box-container h3 {
    font-size: 1.25rem;
    color: #fff; 
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgb(255, 255, 255, 0.2);
}

.box-container p {
    font-size: 1rem;
    color: #004d80;
}

.content_service, .about, .price, .contact {
    padding: 20px;
}

.btn-home {
    display: flex;
    flex-direction: column;
}

.btn-home a {
    margin: 5px 0;
}

.content {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 20rem;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    background: #004d80;
    padding: 10px 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel {
    display: flex;
    gap: 40px;
    position: relative;
    will-change: transform;
}

.carousel img {
    height: 60px; 
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s;
}

@keyframes scroll {
    form{
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.servicios {
    background: url(images/Otros/fondos/background2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
}

.servicios-content {
    padding: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-radius: 1rem;
    max-width: 70rem;
    margin: 0 auto;
    color: #fff;
}

h2.title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
}

.mvv-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; 
    margin: 4rem auto;
    max-width: 1200px;
}

.mvv-box {
    background: #00336670;
    border: 5px solid #0056b3;
    box-shadow: 0 .3rem 2rem rgba(255, 255, 255, 0.15);
    padding: 1.3rem;
    border-radius: 1rem;
    flex: 1 1 300px;
    text-align: center;
    box-sizing: border-box;
    height: 20rem;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mvv-box h2{
    margin-bottom: 2rem;
    font-size: 2rem;
}

.mvv-box p{
    color: #fff;
}

#galeriaRefrigeracionIyC .title{
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#galeriaRefrigeracionIyC article {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    margin: 1rem;
    text-align: center;
}

#galeriaRefrigeracionIyC img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#galeriaProcIndus .title{
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#galeriaProcIndus article {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    margin: 1rem;
    margin-left: 2.1rem;
    text-align: center;
}

#galeriaProcIndus img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#galeriaAireIndus .title{
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#galeriaAireIndus article {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    margin: 1rem;
    text-align: center;
}

#galeriaAireIndus img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#galeriaAireComer .title{
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#galeriaAireComer article {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    margin: 1rem;
    text-align: center;
}

#galeriaAireComer img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.services-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    padding: 2rem;
    background: #13253F70;
    border: 5px solid #0056b3;
    box-shadow: 0 .3rem 2rem rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
}

.servicios-title {
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    margin-bottom: 1.9rem;
    text-transform: uppercase;
}


.nosotros {
    background: url(images/Otros/fondos/fondo3.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
}

.nosotros-title{
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    flex-direction: column;
    font-weight: 700;
    text-align: center;
}

.nosotros-content {
    padding: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-radius: 1rem;
    max-width: 70rem;
    margin: 0 auto;
    color: #fff;
}

.nosotros-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    padding: 2rem;
    background: #13253F70;
    border: 5px solid #0056b3;
    box-shadow: 0 .3rem 2rem rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
}

.content-sau {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    padding-top: 2rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.card {
    background-color: rgba(0, 59, 119, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    width: 20rem;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
}

footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 1.25rem 0;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    background: linear-gradient(to bottom, #003366, #001f4d);
}

.footer-section.social {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.social-left, .social-right {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-left p, .social-right p {
    font-size: 1rem;
    color: #fff;
}

.footer-section.social div {
    width: 45%;
    text-align: left;
}

.footer-section.social div a {
    font-size: 18px;
    color: #fff;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.footer-section.social h2, .footer-section.program h2 {
    font-size: 16px; 
    color: #fff;
    margin-bottom: 10px;
}

.footer-section.social a, .footer-section.program a {
    font-size: 18px;
    color: #0077b6;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.footer-section.social a:hover, .footer-section.program a:hover {
    color: #66b3ff;
}

.footer-bottom {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-bottom p {
    font-size: 1rem;
    
    color: #fff;
    margin-bottom: 10px;
}

@media (max-width: 1100px) {
    .head {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 0.5rem 1rem;
    }

    .navbar {
        margin-top: 1.20rem;
        display: none;
    }

    .menu-toggle-label {
        display: flex;
    }

    .menu-toggle-checkbox:checked ~ .navbar-hamburguesa {
        display: flex;
    }

    .logo {
        max-width: 100%;
    }
}

@media (min-width: 1101px) {
    .navbar-hamburguesa {
        display: none;
    }
}

@media (max-width: 768px) {
    .head {
        flex-direction: column;
        align-items: flex-start;
        height: 5rem;
        padding: 0.5rem 1rem;
    }

    .navbar {
        display: none;
    }

    .menu-toggle{
        display: flex;
    }

    .menu-toggle-checkbox:checked ~ .navbar-hamburguesa {
        display: flex;
    }

    .title {
        margin-bottom: 20px;
        font-size: 30px;
    }

    .sau {
        height: auto;
        background-size: contain; 
    }

    .box-container {
        flex-direction: column;
        align-items: center;
    }

    .box-row {
        flex-direction: column;
        width: 100%;
    }

    .carousel img {
        height: 70px;
        margin: 0 10px;
    }

    .logo img{
        margin: 0;
    }

    .mvv-container {
        flex-direction: column;
        align-items: center;
    }

    .mvv-box {
        max-width: 90%;
    }

    .services-text {
        font-size: 16px;
        padding: 15px;
    }

    .servicios-content {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .nosotros-text {
        font-size: 16px;
        padding: 15px;
    }

    .nosotros-content {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .card {
        width: 100%;
        margin: 1rem 0;
    }

    .footer-section.social{
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 450px) {
    .logo img{
        max-width: 70%;
        margin: 0;
    }

    .carousel img {
        height: 50px;
        margin: 0 8px;
    }
}