/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #222;
}


/* =========================
   ENCABEZADO
========================= */

header {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;

    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* LOGO */

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-principal {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-secundario {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #777;
    text-transform: uppercase;
}

/* MENÚ */

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #777;
}


/* =========================
   MENÚ DE PRODUCTOS
========================= */

.menu-productos {
    position: relative;
}

.menu-productos > a::after {
    content: "⌄";
    font-size: 12px;
    margin-left: 6px;
}


/* SUBMENÚ */

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    min-width: 200px;

    background-color: #ffffff;
    border: 1px solid #e5e5e5;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);

    padding: 10px 0;

    opacity: 0;
    visibility: hidden;

    transition: 0.2s;
}


/* MOSTRAR SUBMENÚ */

.menu-productos:hover .submenu {
    opacity: 1;
    visibility: visible;
}


/* ENLACES DEL SUBMENÚ */

.submenu a {
    display: block;

    padding: 12px 20px;

    text-decoration: none;
    color: #222;

    font-size: 14px;
    white-space: nowrap;
}

.submenu a:hover {
    background-color: #f3f3f3;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;

    background-image: url("../imagenes/Inicio.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


/* CAPA OSCURA */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.35);
}


/* CONTENIDO */

.hero-contenido {
    position: relative;
    z-index: 1;

    max-width: 850px;

    color: white;
}


/* SUBTÍTULO */

.hero-subtitulo {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;

    margin-bottom: 25px;
}


/* TÍTULO */

.hero h1 {
    font-size: 58px;
    line-height: 1.08;
    margin-bottom: 25px;
}


/* DESCRIPCIÓN */

.hero-texto {
    max-width: 650px;

    margin: 0 auto 35px;

    font-size: 19px;
    line-height: 1.7;
}


/* BOTONES DEL HERO */

.hero-botones {
    display: flex;
    justify-content: center;

    gap: 15px;
}


/* BOTÓN GENERAL */

.boton {
    display: inline-block;

    padding: 15px 30px;

    background-color: white;
    color: #222;

    text-decoration: none;

    font-size: 15px;
    font-weight: bold;

    border-radius: 4px;

    transition: 0.3s;
}

.boton:hover {
    transform: translateY(-3px);
}


/* SEGUNDO BOTÓN */

.boton-secundario {
    background-color: transparent;
    color: white;

    border: 1px solid white;
}

.boton-secundario:hover {
    background-color: white;
    color: #222;
}


/* =========================
   BOTONES
========================= */

button {
    border: none;

    padding: 15px 30px;

    background-color: #222;
    color: white;

    font-size: 15px;

    cursor: pointer;

    border-radius: 4px;

    transition: 0.3s;
}

button:hover {
    background-color: #444;

    transform: translateY(-2px);
}


/* =========================
   SECCIONES
========================= */

section {
    padding: 80px 8%;
}

section h2 {
    text-align: center;

    font-size: 38px;

    margin-bottom: 50px;
}


/* =========================
   ENCABEZADO DE SECCIÓN
========================= */

.seccion-encabezado {
    max-width: 750px;

    margin: 0 auto 35px;

    text-align: center;
}

.seccion-subtitulo {
    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    color: #777;

    margin-bottom: 15px;
}

.seccion-encabezado h2 {
    font-size: 42px;

    margin-bottom: 20px;
}

.seccion-encabezado > p:last-child {
    color: #666;

    font-size: 17px;

    line-height: 1.7;
}


/* =========================
   PRODUCTOS
========================= */

#productos {
    padding-bottom: 40px;
}


.productos {
    max-width: 1400px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 15px;
}


/* TARJETA */

.producto {
    display: block;

    text-decoration: none;

    color: inherit;

    background-color: #f5f5f5;

    border-radius: 6px;

    overflow: hidden;

    transition: 0.3s;
}

.producto:hover {
    transform: translateY(-8px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}


/* IMAGEN */


.producto-imagen {
    height: 180px;
    background-color: #d9d9d9;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition: transform 0.4s;
}

.producto:hover .producto-imagen img {
    transform: scale(1.04);
}

.producto-imagen span {
    color: #777;
    font-size: 18px;
}


/* INFORMACIÓN */

.producto-info {
    padding: 20px;
}

.producto-numero {
    font-size: 13px;

    font-weight: bold;

    color: #888;

    margin-bottom: 10px;
}

.producto-info h3 {
    font-size: 22px;

    margin-bottom: 12px;
}

.producto-info p {
    color: #666;

    line-height: 1.6;

    margin-bottom: 20px;
}

.ver-mas {
    font-size: 14px;

    font-weight: bold;

    color: #222;
}



/* =========================
   GALERÍA
========================= */

#galeria {
    background-color: #ffffff;
}

.galeria {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* ELEMENTO */

.galeria-item {
    background-color: #f3f3f3;
    overflow: hidden;
    cursor: pointer;
}


/* IMAGEN */
/* =========================
   GALERÍA - IMÁGENES
========================= */

.galeria-imagen {
    height: 300px;
    overflow: hidden;
}

.galeria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.4s;
}

.galeria-item:hover .galeria-imagen img {
    transform: scale(1.04);
}


/* =========================
   MODAL DE NUESTROS TRABAJOS
========================= */

.modal-galeria {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.78);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 25px;
    z-index: 2000;
}

.modal-galeria.mostrar {
    display: flex;
}


/* CONTENIDO */

.modal-galeria-contenido {
    width: 100%;
    max-width: 1350px;
    max-height: 90vh;

    background-color: #fff;
    border-radius: 7px;

    overflow: hidden;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    position: relative;
}


/* =========================
   IMAGEN
========================= */

.modal-galeria-imagen {
    width: 100%;
    height: 90vh;
    max-height: 90vh;

    background-color: #f5f5f5;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.modal-galeria-imagen img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================
   INFORMACIÓN
========================= */

.modal-galeria-info {
    padding: 55px 60px;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-galeria-categoria {
    display: block;

    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2.5px;

    color: #666;

    margin-bottom: 14px;
}

.modal-galeria-info h2 {
    font-size: 22px;
    line-height: 1.15;

    color: #666;

    margin: 0 0 25px;
}


/* SEPARADOR */

.modal-separador {
    width: 100%;
    height: 1px;

    background-color: #ddd;

    margin-bottom: 35px;
}


/* CARACTERÍSTICAS */

.modal-caracteristicas h3 {
    font-size: 14px;
    letter-spacing: 2px;

    color: #777;

    margin-bottom: 25px;
}

.caracteristica {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 17px 0;

    border-bottom: 1px solid #e5e5e5;
}

.caracteristica span {
    color: #777;
}

.caracteristica strong {
    color: #222;
}


/* CERRAR */

.cerrar-galeria {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    padding: 0;

    border-radius: 50%;

    background-color: #ffffff;

    color: #222;

    font-size: 28px;

    line-height: 1;

    z-index: 5;
}

.cerrar-galeria:hover {
    background-color: #eeeeee;

    transform: none;
}


/* CELULAR */

@media (max-width: 700px) {

    .modal-galeria {
        padding: 15px;
    }

    .modal-galeria-contenido {
        grid-template-columns: 1fr;

        max-height: 92vh;

        overflow-y: auto;
    }

    .modal-galeria-imagen {
        min-height: 250px;
        height: 45vh;
    }

    .modal-galeria-imagen img {
        max-height: 45vh;
    }

    .modal-galeria-info {
        padding: 25px;
    }

    .modal-galeria-info h2 {
        font-size: 28px;
    }

}

/* EFECTO */

.galeria-item:hover .galeria-imagen img {
    transform: scale(1.04);
}


/* INFORMACIÓN */

.galeria-info {
    padding: 18px 20px;
}



.galeria-info h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.galeria-info p {
    color: #777;
    font-size: 14px;
    margin: 0;
}






/* =========================
   SOBRE NOSOTROS
========================= */

#nosotros {
    background-color: #f5f5f5;
}


.nosotros-contenido {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}


/* TEXTO */

.nosotros-texto {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.nosotros-texto h2 {
    font-size: 44px;

    line-height: 1.15;

    margin-bottom: 30px;
}

.nosotros-texto p:not(.seccion-subtitulo) {
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}


/* BOTÓN */

.boton-nosotros {
    margin-top: 15px;

    background-color: #222;

    color: white;
}

.boton-nosotros:hover {
    background-color: #444;

    color: white;
}


/* DATOS */

.nosotros-datos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


.dato {
    background-color: #f5f5f5;

    padding: 35px 30px;

    min-height: 210px;
}

.dato span {
    display: block;

    font-size: 13px;

    font-weight: bold;

    color: #888;

    margin-bottom: 30px;
}

.dato h3 {
    font-size: 20px;

    margin-bottom: 12px;
}

.dato p {
    color: #666;

    line-height: 1.6;
}


/* =========================
   CONTACTO
========================= */

#contacto {
    background-color: #252525;
    color: white;
    text-align: center;
}

.contacto-contenido {
    max-width: 750px;
    margin: auto;
}

.contacto-contenido .seccion-subtitulo {
    color: #b5b5b5;
}

.contacto-contenido h2 {
    font-size: 45px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.contacto-contenido > p:not(.seccion-subtitulo) {
    color: #c5c5c5;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.contacto-boton {
    background-color: white;
    color: #222;
}

.contacto-boton:hover {
    background-color: #eeeeee;
    color: #222;
}




/* =========================
   FOOTER
========================= */

footer {
    background-color: #181818;
    color: white;
    padding: 70px 8% 0;
}


.footer-contenido {

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 80px;

    padding-bottom: 60px;

}


/* COLUMNAS */

.footer-columna {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.footer-columna h3 {

    font-size: 24px;

    margin-bottom: 20px;

}


.footer-columna h4 {

    font-size: 16px;

    margin-bottom: 20px;

}


.footer-columna p {

    color: #aaa;

    line-height: 1.7;

    margin-bottom: 8px;

    max-width: 350px;

}


.footer-columna a {

    color: #aaa;

    text-decoration: none;

    font-size: 14px;

    margin-bottom: 12px;

    transition: 0.3s;

}


.footer-columna a:hover {

    color: white;

}


/* PARTE INFERIOR */

.footer-inferior {

    border-top: 1px solid #444;

    padding: 25px 0;

    text-align: center;

}


.footer-inferior p {

    color: #888;

    font-size: 13px;

}


/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 700px) {

    footer {

        padding: 50px 8% 0;

    }


    .footer-contenido {

        grid-template-columns: 1fr;

        gap: 40px;

        padding-bottom: 40px;

    }

}


/* =========================
   CATÁLOGO DE VENTANAS
========================= */

.catalogo {
    max-width: 1200px;

    margin: auto;

    text-align: center;
}

.catalogo h1 {
    font-size: 45px;

    margin-bottom: 20px;
}

.descripcion-catalogo {
    max-width: 650px;

    margin: 0 auto 50px;

    color: #666;

    font-size: 18px;

    line-height: 1.7;
}


/* =========================
   CATEGORÍAS
========================= */

.categorias {
    display: flex;

    justify-content: center;

    gap: 15px;

    margin-bottom: 50px;
}

.categoria {
    background-color: #f0f0f0;

    color: #222;

    border: 1px solid #ddd;

    padding: 14px 28px;

    border-radius: 4px;

    font-size: 15px;
}

.categoria:hover {
    background-color: #ddd;

    transform: none;
}

.categoria.active {
    background-color: #222;

    color: white;

    border-color: #222;
}


/* =========================
   MODELOS
========================= */

.modelos {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    text-align: left;
}


.modelo {
    background-color: #f5f5f5;

    border-radius: 6px;

    overflow: hidden;

    transition: 0.3s;
}

.modelo:hover {
    transform: translateY(-7px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.10);
}


/* IMAGEN */

.modelo-imagen {
    height: 260px;

    background-color: #d9d9d9;

    display: flex;

    align-items: center;

    justify-content: center;
}

.modelo-imagen span {
    color: #777;

    font-size: 18px;
}


/* INFORMACIÓN */

.modelo-info {
    padding: 25px;
}

.modelo-info h2 {
    font-size: 21px;

    margin-bottom: 12px;
}

.modelo-info p {
    color: #666;

    line-height: 1.6;

    margin-bottom: 20px;
}


/* =========================
   MODAL DEL PRODUCTO
========================= */

.modal {
    position: fixed;

    inset: 0;

    background-color: rgba(0, 0, 0, 0.70);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 2000;
}

.modal.mostrar {
    display: flex;
}


.modal-contenido {
    width: 100%;

    max-width: 1000px;

    max-height: 90vh;

    overflow-y: auto;

    background-color: white;

    border-radius: 8px;

    position: relative;

    display: grid;

    grid-template-columns: 1fr 1fr;
}


/* BOTÓN CERRAR */

.cerrar-modal {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    padding: 0;

    border-radius: 50%;

    background-color: white;

    color: #222;

    font-size: 28px;

    line-height: 1;

    z-index: 5;
}

.cerrar-modal:hover {
    background-color: #eee;

    transform: none;
}


/* IMAGEN */

.modal-imagen {
    min-height: 500px;

    background-color: #d9d9d9;

    display: flex;

    align-items: center;

    justify-content: center;
}

.modal-imagen span {
    color: #777;

    font-size: 20px;
}


/* INFORMACIÓN */

.modal-informacion {
    padding: 60px 45px;
}

.modal-categoria {
    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #777;
}

.modal-informacion h2 {
    font-size: 36px;

    margin: 15px 0 20px;
}

.modal-informacion > p {
    color: #666;

    line-height: 1.7;

    margin-bottom: 30px;
}


/* CARACTERÍSTICAS */

.caracteristicas h3 {
    font-size: 18px;

    margin-bottom: 15px;
}

.caracteristicas ul {
    padding-left: 20px;

    margin-bottom: 30px;
}

.caracteristicas li {
    margin-bottom: 10px;

    color: #555;
}


/* BOTÓN COTIZAR */

.cotizar {
    width: 100%;
}


/* =========================
   RESPONSIVE
========================= */


/* TABLET */

@media (max-width: 1100px) {

    .productos {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* TABLET PEQUEÑA */

@media (max-width: 900px) {

    .galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .modelos {
        grid-template-columns: repeat(2, 1fr);
    }

    .nosotros-contenido {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .nosotros-texto {
        max-width: 100%;
    }

    .nosotros-texto h2 {
        font-size: 34px;
    }

}


/* CELULAR */

@media (max-width: 700px) {

    nav {
        gap: 15px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-botones {
        flex-direction: column;
    }

    .productos {
        grid-template-columns: 1fr;
    }

    .producto-imagen {
        height: 250px;
    }

    .producto-info h3 {
        font-size: 26px;
    }

    .seccion-encabezado h2 {
        font-size: 32px;
    }

    .galeria {
        grid-template-columns: 1fr;
    }

    .galeria-imagen {
        height: 250px;
    }

    .categorias {
        flex-direction: column;

        align-items: stretch;
    }

    .modelos {
        grid-template-columns: 1fr;
    }

    .catalogo h1 {
        font-size: 35px;
    }

    .modal-contenido {
        grid-template-columns: 1fr;
    }

    .modal-imagen {
        min-height: 300px;
    }

    .modal-informacion {
        padding: 35px 25px;
    }

    .modal-informacion h2 {
        font-size: 28px;
    }

}



/* =========================
   CONTACTO
========================= */

#contacto {

    background-color: #222;

    color: white;

    text-align: center;

}


.contacto-contenido {

    max-width: 750px;

    margin: auto;

}


.contacto-contenido .seccion-subtitulo {

    color: #aaa;

}


.contacto-contenido h2 {

    font-size: 45px;

    line-height: 1.15;

    margin-bottom: 20px;

}


.contacto-contenido > p:not(.seccion-subtitulo) {

    color: #ccc;

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 35px;

}


.contacto-boton {

    background-color: white;

    color: #222;

}


.contacto-boton:hover {

    background-color: #eee;

    color: #222;

}


/* =========================
   CONTACTO RESPONSIVE
========================= */

@media (max-width: 600px) {

    .contacto-contenido h2 {

        font-size: 34px;

    }

}




/* =========================
   HEADER RESPONSIVE
========================= */

@media (max-width: 700px) {

    .galeria-eurovent {
        grid-template-columns: 1fr;
    }

    .ventana-eurovent-imagen {
        height: 300px;
    }

}

/* Ocultar el botón hamburguesa en versión de escritorio */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333333; /* Asegura que el icono sea oscuro y visible */
    z-index: 1000;  /* Asegura que esté por encima de otros elementos */
}

/* =========================================
   MEDIA QUERY PARA CELULARES (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Mostrar el botón hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* 2. Ocultar y reestructurar el menú principal */
    .menu-encabezado {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se coloca justo debajo del header */
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Cambia esto al color de tu fondo */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 15px 0;
    }

    /* 3. Clase que usará JavaScript para mostrar el menú */
    .menu-encabezado.activo {
        display: flex;
    }

    /* 4. Acomodar los enlaces para que sean fáciles de tocar */
    .menu-encabezado a {
        padding: 15px 20px;
        display: block;
        text-align: left;
    }

    /* 5. Ajustar el submenú para que se despliegue hacia abajo en lugar de flotar */
    .menu-productos .submenu {
        position: static;
        display: none;
        flex-direction: column;
        background-color: #f9f9f9; /* Un tono un poco más oscuro para diferenciarlo */
        padding-left: 15px; /* Sangría para los sub-elementos */
    }

    .menu-productos:hover .submenu {
        display: flex;
    }
}

@media (max-width: 700px) {

    #nosotros {
        width: 100%;
        overflow-x: hidden;
    }

    .nosotros-contenido {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nosotros-texto {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .nosotros-texto h2 {
        font-size: 32px;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .nosotros-texto p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .nosotros-datos {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dato {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}