:root {
    --brand-red: #ce121b;       
    --brand-red-hover: #b00f17; 
    --brand-green: #597722;
    --dark-bg: #1f1f1f;
    --dark-text: #1a1a1a;
    --light-gray-text: #cccccc;
    --white: #ffffff;
}

/* PREVENCIÓN DE DESPLAZAMIENTO HORIZONTAL EN MÓVILES */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Bahnschrift', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
}

/* ===================================================
   1. NAVBAR & NAVEGACIÓN
   =================================================== */
.navbar {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 14px 6%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 160px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-red);
}

.nav-btn-red {
    background-color: var(--brand-red);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700 !important;
    transition: background-color 0.2s ease !important;
}

.nav-btn-red:hover {
    background-color: var(--brand-red-hover);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.icon-lang {
    width: 26px;
    height: auto;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* BOTÓN HAMBURGUESA */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* RESPONSIVO NAVBAR (MENÚ MÓVIL) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 12px 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 20px;
        box-shadow: 0 10px 15px #0000001a;
        display: none;
        border-top: 1px solid #f0f0f0;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
    }

    .lang-selector {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eaeaea;
        width: 80%;
        justify-content: center;
    }

    .hamburger.open span:nth-child(1),
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.open span:nth-child(2),
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3),
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* ===================================================
   BANNER HERO - SECCIÓN CONTACTO
   =================================================== */
.contact-hero-banner {
    background-color: #1a1a1a;
    padding: 80px 6%;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.contact-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-banner-text {
    flex: 1;
    max-width: 650px;
}

.contact-banner-text h1 {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.contact-banner-text p {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 18px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.contact-banner-graphic {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-giant-alpha, .brand-giant-alpha {
    width: 280px;
    height: auto;
    filter: invert(19%) sepia(93%) saturate(6089%) hue-rotate(354%) brightness(91%) contrast(89%);
    opacity: 0.85;
    display: block;
}

/* RESPONSIVO AJUSTADO IDENTICO A SERVICIOS EN MÓVILES */
@media (max-width: 768px) {
    .contact-hero-banner {
        padding: 40px 20px 30px 20px;
    }
    
    .contact-banner-container {
        flex-direction: column;
        text-align: center;
        gap: 15px; 
        width: 100%;
    }

    .contact-banner-text h1 {
        font-size: 28px;
        line-height: 1.4;
    }

    .contact-banner-text p {
        font-size: 14.5px;
        line-height: 1.45;
        margin: 0 auto;
    }

    .contact-banner-graphic {
        display: flex;
        justify-content: center;
        width: 100%;
        min-width: unset;
        margin-top: 10px;
    }

    .contact-giant-alpha, .brand-giant-alpha {
        width: 120px;
        max-width: 60%;
    }
}

/* ===================================================
   CONTENEDOR GENERAL DE LA INTERFAZ
   =================================================== */
.contact-interface-section {
    background-color: #f7f7f9; /* Fondo gris claro idéntico a las galerías del sitio */
    padding: 60px 6%;
}

.contact-interface-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* 2 Columnas: Formulario más ancho a la izquierda */
    gap: 30px; /* Separación limpia entre bloques */
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Evita que las tarjetas de la derecha se deformen */
}

/* Tarjetas Blancas Estilo Render / Mockup */
.contact-card-white {
    background-color: var(--white);
    border-radius: 32px; /* Esquinas súper suavizadas idénticas a las imágenes */
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.contact-card-white h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 30px 0;
}

/* Estructura del Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Bahnschrift', sans-serif;
    font-size: 15px;
    color: var(--dark-text);
    background-color: var(--white);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Botón Enviar mensaje */
.btn-submit-form {
    background-color: var(--brand-red);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-family: 'Bahnschrift', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start; /* No se expande horizontalmente por completo */
    transition: background-color 0.2s ease;
}

.btn-submit-form:hover {
    background-color: var(--brand-red-hover);
}

/* Columna Lateral Derecha */
.contact-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Filas de Información de Contacto Lateral */
.sidebar-info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.sidebar-info-row:last-child {
    margin-bottom: 0;
}

.sidebar-icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: #fff5f5; /* Fondo tenue para resaltar el vector */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon-wrapper img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sidebar-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-text-wrapper strong {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
}

.sidebar-text-wrapper span {
    font-size: 14px;
    color: var(--dark-text);
    line-height: 1.4;
}

/* Bloque del Mapa */
.map-iframe-wrapper {
    width: 100%;
    height: 260px; /* Tamaño del mapa equilibrado */
    border-radius: 16px;
    overflow: hidden;
    background-color: #e2e8f0;
}

/* --- FOOTER --- */
.footer {
    background-color: #1f1f1f; /* Negro mate institucional idéntico a la imagen */
    color: #cccccc;
    padding: 60px 6% 25px;
    font-family: 'Bahnschrift', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.3fr 1fr; /* Proporciones exactas de columnas */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 155px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-logo-svg {
    width: 155px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1); /* Convierte el logotipo a blanco para fondo oscuro si es necesario */
}

.footer-brand-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
}

.footer-col h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Filas de contacto con tus iconos personalizados */
.contact-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #b0b0b0;
}

.contact-item-row span {
    font-size: 13.5px;
    line-height: 1.5;
}

.contact-pdf-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    font-size: 12.5px;
    color: #777777;
}

/* LINK DE POLITICAS DE PRIVACIDAD */
.privacy-link,
.privacy-link:visited {
    color: #cccccc !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
}

.privacy-link:hover,
.privacy-link:focus {
    color: var(--brand-red) !important;
    text-decoration: underline;
}

/* --- ICONOS DE REDES SOCIALES EN EL FOOTER --- */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
}

.whatsapp-btn-icon {
    width: 34px;
    height: 34px;
    display: block;
}

/* Ajustes Responsive para el Footer y Grid General */
@media (max-width: 992px) {
    .contact-interface-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row-grid {
        grid-template-columns: 1fr;
    }
}