/* ==========================================================================
   DISEÑO BASE Y RESET (Estilos Globales)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
    color: #1E293B;
}

body {
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.bg-light { background-color: #F4F7F9; }
.hidden { display: none !important; }

/* ==========================================================================
   BARRA DE NAVEGACIÓN (Navbar)
   ========================================================================== */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0B4F93; /* Azul Corporativo Principal */
    font-size: 20px;
    letter-spacing: 0.5px;
}

.logo small {
    color: #00A4E4; /* Azul Aqua de la Gota */
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #1E293B;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00A4E4;
}

/* INTERRUPTOR DE IDIOMA */
.lang-switcher button {
    background: none;
    border: 1px solid #0B4F93;
    color: #0B4F93;
    padding: 5px 12px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-switcher button.active, .lang-switcher button:hover {
    background-color: #0B4F93;
    color: #ffffff;
}

/* ==========================================================================
   PORTADA PRINCIPAL (Hero Section)
   ========================================================================== */
.hero-section {
    background-image: url("agua.jfif");
    background-size: cover;
    background-position: center;
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11,79,147,0.95), rgba(0,164,228,0.45));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

/* ==========================================================================
   COMPONENTES DE BOTÓN
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-cta {
    background-color: #00A4E4;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,164,228,0.4);
}

.btn-cta:hover {
    background-color: #0B4F93;
    transform: translateY(-2px);
}

/* ==========================================================================
   ESTILOS DE SECCIONES (Nosotros / About Us)
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #0B4F93;
    margin-bottom: 10px;
}

.title-line {
    display: block;
    width: 60px;
    height: 4px;
    background-color: #00A4E4;
    margin: 0 auto 40px auto;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

/* MISIÓN Y VISIÓN CARDS */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mv-card {
    background-color: #F4F7F9; /* Gris Técnico para secciones limpias */
    padding: 30px;
    border-left: 5px solid #0B4F93;
    border-radius: 0 8px 8px 0;
}

.mv-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0B4F93;
    margin-bottom: 15px;
}

/* ==========================================================================
   SECCIÓN SERVICIOS (Grid Industrial & Residencial)
   ========================================================================== */
.category-heading {
    font-family: 'Montserrat', sans-serif;
    color: #0B4F93;
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.service-info {
    padding: 25px;
}

.service-info h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1E293B;
    margin-bottom: 10px;
    font-size: 18px;
}

.service-info p {
    font-size: 14px;
    color: #64748B;
}

/* ==========================================================================
   SECCIÓN CONTACTO Y FORMULARIO
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0B4F93;
    font-size: 32px;
    margin-bottom: 15px;
}

.info-item {
    margin-top: 20px;
    font-size: 16px;
}

.info-item a {
    color: #00A4E4;
    text-decoration: none;
    font-weight: 600;
}

.contact-form-wrapper {
    background-color: #F4F7F9;
    padding: 40px;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background-color: #ffffff;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #00A4E4;
    box-shadow: 0 0 0 2px rgba(0,164,228,0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #0B4F93;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #00A4E4;
}

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
footer {
    background-color: #0F172A; /* Azul Oscuro Profundo */
    color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
}

footer p {
    margin-bottom: 5px;
}

/* ==========================================================================
   DISEÑO RESPONSIVO (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-links {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-padding {
        padding: 50px 0;
    }
}

/* ==========================================================================
   FORCED VISUAL REPAIR FOR IMAGES
   ========================================================================== */
.service-img-tag {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    background-color: #cbd5e1; /* Fallback gray box if internet drops */
}

.hero-section {
    min-height: 75vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}
