:root {
    --navy: #1b365d;
    --blue-mid: #2a4c7e;
    --yellow: #f2a900;
    --gray-bg: #f4f7f9;
    --text-dark: #333;
    --white: #ffffff;

    /* Colores para las secciones dinámicas */
    --navy-light: #2a4c7e;
    --green-btn: #67d678;
    --green-btn-hover: #58c268;
    --bg-light: #f6f8f9;
    --border-gray: #e0e4e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

/* Forzamos a que todos los títulos usen Libre Franklin */
h1, h2, h3, h4, .section-title {
    font-family: 'Libre Franklin', sans-serif;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container img { height: 100px; object-fit: contain;}

/* =========================================
   BARRA DE BÚSQUEDA (ESTILO FIGMA)
   ========================================= */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--navy); /* Borde azul delineado */
    border-radius: 50px; /* Forma de píldora perfecta */
    width: 650px; /* Mucho más ancha, como en Figma */
    height: 50px; /* Altura fija para que el botón encaje perfecto */
    overflow: hidden; /* Esto corta el fondo del botón para que respete la curva derecha */
}

.search-bar i.fa-search {
    color: var(--navy);
    font-size: 1.4rem; /* Lupa un poco más grande */
    padding-left: 20px;
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 0 15px;
    height: 100%;
    width: 100%;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.search-bar input::placeholder {
    color: #666; /* Color sutil para el placeholder */
}

.search-bar button {
    background: var(--navy);
    color: var(--white);
    border: none;
    height: 100%; /* Toma toda la altura del padre */
    padding: 0 40px; /* Ancho del botón */
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--blue-mid);
}

/* =========================================
   ÍCONOS (WHATSAPP Y MENÚ ALINEADOS)
   ========================================= */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px; /* Separación idéntica al diseño */
}

.header-icons i {
    color: var(--navy);
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Ajuste milimétrico para igualar el "peso" visual */
.header-icons a i.fa-whatsapp {
    font-size: 38px; /* El logo de WhatsApp ocupa inflarse un poquito más por ser circular */
}

.header-icons i#menu-btn {
    font-size: 32px; /* La hamburguesa a este tamaño queda del mismo ancho que WhatsApp */
}

.header-icons a:hover i, .header-icons i:hover {
    color: var(--yellow); 
}
/* MENÚ DESPLEGABLE */
.dropdown-menu {
    display: none; 
    position: absolute;
    top: 150%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    width: 280px;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu a {
    padding: 15px 20px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f4f7f9;
    color: var(--blue-mid);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* HERO CAROUSEL */
.hero {
    height: 35vw; 
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-arrows {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; 
    transform: none; 
    z-index: 10; 
}

.hero-arrows i {
    background: rgba(255, 255, 255, 0.4); 
    height: 100%; 
    width: 70px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-arrows i:hover { 
    background: rgba(255, 255, 255, 0.6); 
}

/* SECCIONES COMUNES */
.section-title {
    text-align: center;
    color: var(--navy);
    padding: 60px 0 30px;
    font-weight: 800;
    font-size: 2rem;
}

/* PRODUCTOS PRINCIPALES */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    padding: 0 20px;
    max-width: 1600px; 
    margin: 0 auto;
}

.product-card {
    height: 280px; 
    width: 100%; /* Aseguramos que tome el ancho del grid */
    border-radius: 22px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    background-size: cover;
    background-position: center;
}

a.product-card {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.product-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); 
}

.product-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(43, 83, 144, 0); 
    z-index: 1;
}

.product-card h3 { 
    position: relative; 
    z-index: 2; 
    font-weight: 800; 
    font-size: 1.2rem; 
    padding: 20px 40px; 
    line-height: 1.4;
}

/* SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 0 5% 60px;
    max-width: 1650px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    display: flex;
    flex-direction: column;
    padding: 20px; 
}

.service-img { 
    height: 220px; 
    background-size: cover;
    background-position: center;
    border-radius: 10px; 
    width: 100%;
}

.service-content { 
    padding: 20px 10px 10px 10px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.service-content h3 { 
    color: var(--navy); 
    margin-bottom: 15px; 
    text-align: center; 
    font-weight: 700;
}

.service-content p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.service-content ul { 
    list-style: none; 
    margin: 5px 0 20px 0; 
    font-size: 0.95rem; 
    flex-grow: 1;
}

.service-content li::before { 
    content: "• "; 
    color: var(--text-dark); 
    font-weight: bold; 
}

.btn-outline {
    display: block;
    text-align: center;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline:hover { 
    background: var(--navy); 
    color: var(--white); 
}

/* PROCESO EXCELENCIA */
.process-section { 
    background: var(--gray-bg); 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.process-img-full {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* CONTACTO */
.contact-section { 
    display: flex; 
    padding: 80px 10%; 
    gap: 80px; 
    align-items: center; 
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info { 
    flex: 1; 
    text-align: center; 
}

.contact-info h2 { 
    color: var(--navy); 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
    text-transform: uppercase;
}

.phone-number { 
    font-size: 3.5rem; 
    color: var(--navy); 
    font-weight: 800; 
    margin-bottom: 20px; 
    letter-spacing: -1px;
}

.contact-info p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-form-container { 
    flex: 1; 
}

.contact-form-container h2 { 
    text-align: center; 
    color: var(--navy); 
    font-size: 2.2rem;
    margin-bottom: 30px; 
    text-transform: uppercase;
}

#contactForm input, #contactForm textarea {
    width: 100%; 
    padding: 18px 20px; 
    margin-bottom: 20px;
    border: 1px solid #dce3eb; 
    background: #f4f7f9; 
    border-radius: 8px; 
    font-size: 1rem;
    color: var(--text-dark);
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

#contactForm input:focus, #contactForm textarea:focus {
    border-color: var(--blue-mid); 
}

#contactForm textarea {
    height: 150px;
    resize: vertical;
}

#contactForm button {
    width: 100%; 
    padding: 18px; 
    background: var(--navy);
    color: var(--white); 
    border: none; 
    font-size: 1.1rem;
    font-weight: 700; 
    cursor: pointer; 
    border-radius: 8px;
    transition: background 0.3s;
    font-family: 'Open Sans', sans-serif;
}

#contactForm button:hover {
    background: var(--blue-mid);
}

/* =========================================
   FOOTER (CON DEGRADADO E ÍCONOS PNG)
   ========================================= */
footer { 
    background: linear-gradient(to right, var(--navy), var(--blue-mid));
    color: var(--white); 
    padding: 40px 5% 20px 5%; /* Más padding arriba para respirar */
}

.footer-container {
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-items {
    display: flex;
    justify-content: center; /* Centra todos los elementos */
    flex-wrap: wrap; /* Si la pantalla es chica, los pasa abajo */
    gap: 200px; /* Separación amplia entre cada bloque */
    width: 100%;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el iconito PNG y el texto */
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Tamaño de tus íconos PNG */
.footer-item img {
    width: 28px;
    height: auto;
    object-fit: contain;
}

/* Enlaces del footer para que no se vean subrayados ni cambien de color feo */
a.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s;
}

a.footer-link:hover {
    transform: translateY(-3px); /* Brincan un poquito al pasar el mouse */
}

/* Sección de Aviso de Privacidad */
.footer-legal {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Una línea sutil para separar */
    padding-top: 20px;
    margin-top: 10px;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--yellow);
}

/* Responsive para que en celular se apilen bonito */
@media (max-width: 900px) {
    .footer-items {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}

/* RESPONSIVE GENERAL */
@media (max-width: 900px) {
    .products-grid, .services-grid, .contact-section {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* =========================================
   PÁGINAS DINÁMICAS (VENTILACIÓN, BOMBEO, ETC)
   ========================================= */

.bg-ventilacion {
    background-color: var(--bg-light);
}

.vent-hero {
    background: linear-gradient(to right, var(--navy), var(--blue-mid));
    color: var(--white);
    text-align: center;
    padding: 20px 20px; 
}

.vent-hero h1 {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 800;
    font-size: 3.5rem; 
    margin-bottom: 25px; 
    letter-spacing: 1px;
}

.vent-hero p {
    font-size: 1.5rem; 
    line-height: 1.6;
    font-weight: 400;
    margin: 0; 
}

/* CATÁLOGO DE PRODUCTOS - GRID REFORZADO */
.vent-catalog {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%; /* Aseguramos que el contenedor use el espacio disponible */
}

.vent-grid {
    display: grid;
    /* 3 columnas iguales */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    width: 100%;
    align-items: stretch; /* Esto hace que todas las tarjetas midan lo mismo de alto */
}

.vent-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%; /* Importante: que la tarjeta se adapte al espacio del grid */
}

.vent-img-container {
    background-color: #fcfcfc;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.vent-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vent-card-body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vent-title {
    font-family: 'Libre Franklin', sans-serif;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.vent-btn-container {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.vent-btn {
    flex-grow: 1;
    background: var(--green-btn);
    color: var(--white);
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vent-btn:hover {
    background: var(--green-btn-hover);
}

.vent-btn-pdf {
    background: var(--navy);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vent-btn-pdf:hover {
    background: var(--navy-light);
}

@media (max-width: 1024px) {
    .vent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .vent-grid { grid-template-columns: 1fr; }
    .vent-hero h1 { font-size: 2.2rem; }
}
/* =========================================
   PÁGINA DE PRIVACIDAD Y POLÍTICAS
   ========================================= */

.legal-section {
    padding: 60px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 60px 80px;
    color: var(--text-dark);
}

.legal-card h2 {
    font-family: 'Libre Franklin', sans-serif;
    color: var(--navy);
    font-weight: 900;
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card h3 {
    font-family: 'Libre Franklin', sans-serif;
    color: var(--blue-mid);
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-card p, .legal-card li {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #4a5568;
}

.legal-card ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.legal-card li::before {
    /* Quitamos el punto azul marino grueso de los servicios para que sea una lista normal */
    content: none; 
}

.legal-card li {
    list-style-type: disc;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .legal-card {
        padding: 40px 25px;
    }
    .legal-card h2 {
        font-size: 1.6rem;
    }
}
/* Tablet: 2 productos por fila */
@media (max-width: 1024px) {
    .vent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Celular: 1 producto por fila */
@media (max-width: 768px) {
    .vent-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vent-hero h1 {
        font-size: 2.2rem;
    }
}
/* RESPONSIVE GENERAL */
@media (max-width: 900px) {
    /* Ajuste para que las columnas se apilen */
    .products-grid, .services-grid, .contact-section {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    /* AJUSTE VITAL PARA EL HEADER EN CELULARES */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    /* La barra de búsqueda toma el 100% del ancho del celular */
    .search-bar {
        width: 100%;
        max-width: 100%;
        height: 45px;
    }

    .search-bar input {
        font-size: 0.95rem; /* Letra un poquito más chica para que quepa bien */
    }

    .search-bar button {
        padding: 0 20px; /* Botón un poco más compacto */
    }
}