* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: #222;
    padding: 20px;
    margin: 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    border-radius: 5px;
    background: #ffffff;
    width: 120px;
    height: 80px;
    padding: 4px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 120px;
    cursor: pointer;
}

.logo img:hover {
    max-width: 115px;
}

.header-buttons {
    display: flex;
    margin: auto;
    gap: 20px;
    align-items: center;
}

.header-button {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.header-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contacto-button {
    display: inline-block;
    background-color: #575757;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.contacto-button:hover {
    background-color: #414141be;
}

.contacto-button:active {
    transform: scale(0.95);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero {
    background-image: url('./assets/img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: bottom;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nosotros {
    padding: 3.5rem 0;
    margin-top: 0;
    background-color: #222;
    display: grid;
    place-content: center;

}

.nosotros_titulo {
    padding: 20px;
    padding: 60px;
    margin: 0;
    margin-left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards 0.5s;
    text-wrap: balance;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parallax-section {
    background-color: #f1f1f1;
    height: 80%;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}


.parallax-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.texto-calidad {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    height: max-content;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    color: rgb(0, 0, 0);
    font-size: 2.7rem;
    font-weight: bold;
    text-align: center;
}

.adorno {
    position: absolute;
    right: -400px;
    top: -500px;
    width: 2100px;
    height: auto;
}

.image-text {
    position: relative;
    opacity: 1;
}


.image-text img {
    width: 65%;
    height: auto;
    margin-bottom: 10px;
}

.image-text p {
    color: white;
    font-size: 16px;
}

.beneficios {
    background-color: #f1f1f1;
    display: grid;
    gap: 20px;
    padding: 40px;
    overflow: hidden;
}

.beneficios div {
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
}

.clima {
    background: rgb(255, 255, 255);
    width: 50%;
    box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -webkit-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -moz-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
}

.durabilidad {
    background: rgb(255, 255, 255);
    margin-left: auto;
    width: 50%;
    box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -webkit-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -moz-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
}

.diseño {
    background: rgb(255, 255, 255);
    width: 50%;
    box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -webkit-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -moz-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
}

.instalacion {
    background: rgb(255, 255, 255);
    margin-left: auto;
    width: 50%;
    box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -webkit-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
    -moz-box-shadow: 13px 12px 16px -7px rgba(78, 78, 78, 0.75);
}

/* Estructura de contenido */
.clima-content {
    display: flex;
    flex-direction: column;
    order: 2;
    width: 60%;
}

.imagen-clima {
    order: 1;
    width: 35%;
    max-width: 200px;
    margin: 0 20px;
}

.durabilidad-content {
    display: flex;
    flex-direction: column;
    order: 1;
    width: 60%;
}

.imagen-durabilidad {
    order: 2;
    width: 35%;
    max-width: 200px;
    margin: 0 20px;
}

.diseño-content {
    display: flex;
    flex-direction: column;
    order: 2;
    width: 60%;
}

.imagen-diseño {
    order: 1;
    width: 35%;
    max-width: 200px;
    margin: 0 20px;
}

.instalacion-content {
    display: flex;
    flex-direction: column;
    order: 1;
    width: 60%;
}

.imagen-instalacion {
    order: 2;
    width: 35%;
    max-width: 200px;
    margin: 0 20px;
}

.aplicaciones {
    padding: 50px 20px;
    text-align: center;
    background-color: #f1f1f1;
}

.aplicaciones h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.aplicaciones-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.aplicacion {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aplicacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.aplicacion img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.aplicacion h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.aplicacion p {
    font-size: 1rem;
    color: #555;
}

.contacto {
    padding: 50px 20px;
    text-align: center;
    background-color: #f1f1f1;
}

.contacto h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contacto-info {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contacto-info a {
    color: #0B7CAC;
    font-weight: bold;
    text-decoration: none;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.contacto-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contacto-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contacto-form button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0B7CAC;
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contacto-form button:hover {
    background-color: #095c80;
}

.mapa-container {
    margin-top: 40px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button img {
    width: 24px;
    height: 24px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #4CAF50;
    text-decoration: underline;
}

.cookie-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-left: 20px;
}

.cookie-button:hover {
    background-color: #45a049;
}

footer {
    background-color: #222;
    color: white;
    padding: 20px;
    margin-top: 0;
}

footer nav a {
    color: #0B7CAC;
    text-decoration: none;
    margin: 0 10px;
}

footer nav a:hover {
    text-decoration: underline;
}

/* Mision, Vision, Valores */
.mision-vision-valores {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.mvv-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mvv-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.mvv-item:hover {
    transform: translateY(-5px);
}

.mvv-item.valores {
    grid-column: 1 / -1;
}

.mvv-item h2 {
    color: #222;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #0B7CAC;
    display: inline-block;
    padding-bottom: 5px;
}

.mvv-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mvv-item ul {
    list-style-type: none;
    padding: 0;

}

/* Gallery Styles */
.view-gallery-text {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
    color: #0B7CAC;
    cursor: pointer;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.view-gallery-text:hover {
    background: #0B7CAC;
    color: white;
    transform: translateY(-2px);
}

/* Gallery Overlay */
.gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.close-gallery:hover {
    color: #0B7CAC;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Estilos del acordeón MVV */
.mvv-toggle {
    display: none;
    background: none;
    border: none;
    color: #0B7CAC;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
    font-size: 1rem;
}

.mvv-toggle:hover {
    text-decoration: underline;
}

/* Legal Pages Styles */
.aviso-legal-section,
.politica-de-privacidad-section {
    padding: 50px 20px;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
}

.aviso-legal,
.politica-de-privacidad {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    text-align: left;
}

.aviso-legal h1,
.politica-de-privacidad h1 {
    color: #222;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 3px solid #0B7CAC;
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.aviso-legal h2,
.politica-de-privacidad h2 {
    color: #0B7CAC;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.aviso-legal p,
.politica-de-privacidad p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.aviso-legal u,
.politica-de-privacidad u {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

/* Media Queries para hacerlo responsivo */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .logo {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .header-buttons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: 1000;
    }

    .header-buttons.active {
        display: flex;
    }

    .header-button {
        width: 100%;
        border: none;
        border-bottom: 1px solid #444;
        padding: 15px;
    }

    .contacto-button {
        margin-top: 10px;
        display: inline-flex;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 35px;
    }

    .hero {
        height: 50vh;
        background-size: contain;
    }

    .beneficios div {
        width: 100%;
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-img {
        height: 200px;
    }

    .mvv-content {
        max-height: 100px;
        /* Altura inicial visible */
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        position: relative;
    }

    .mvv-content::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(transparent, #f9f9f9);
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .mvv-item.active .mvv-content {
        max-height: 1000px;
        /* Altura suficiente para mostrar todo */
    }

    .mvv-item.active .mvv-content::after {
        opacity: 0;
    }

    .mvv-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .contacto-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .aplicaciones-container {
        grid-template-columns: 1fr;
    }
}