/* Variables de Color (Basadas en las imágenes) */
:root {
    --primary-color: #4a4a9f; /* Azul/Morado del botón */
    --dark-gray: #333;
    --medium-gray: #555;
    --light-gray-bg: #f4f4f4;
    --text-light: #ffffff;
    --text-dark: #2c2c2c;
    --btn-contact-gold: #d4a01e;
    /* Nuevas variables para el Modal */
    --modal-bg: #5A99A8; /* Azul-teal del modal */
    --modal-btn-yellow: #F0C040;
}

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

body {
    font-family: 'Lato', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Previene la barra horizontal por las animaciones */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--medium-gray); text-align: center; }
h3 { font-size: 1.4rem; color: var(--primary-color); }
p { margin-bottom: 1rem; }

/* Encabezado (Navbar) */
.navbar {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo img {
    height: 60px;
}
.navbar nav ul {
    display: flex;
    list-style: none;
}
.navbar nav li {
    margin-left: 20px;
}
.navbar nav a {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 700;
    transition: color 0.3s ease;
}
.navbar nav a:hover {
    color: var(--primary-color);
}

/* Estilos de Secciones Héroe (SIN EFECTO 3D/PARALLAX) */
.hero {
    min-height: 60vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    /* Imagen de fondo normal con scroll */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-brokers {
    background-image: url('gente-reunion.jpg'); 
}
.hero-pymes {
    background-image: url('banner2.jpg');
    min-height: 70vh;
}
.hero-pymes .hero-logo {
    height: 120px;
    margin-bottom: 1.5rem;
}
.hero-pymes p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 300;
}

/* Servicios (Gestión Integral) */
.services-list {
    padding: 4rem 0;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.services-list ul {
    list-style: none;
}
.services-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}
.services-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Banner Gris (OBTEC) */
.banner-gray {
    background: #3a3a3a;
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}
.banner-gray h2 {
    color: var(--text-light);
    font-size: 1.8rem;
}

/* Banner Iconos */
.banner-icons {
    background: #505050;
    padding: 3rem 0;
}
.banner-icons .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    color: var(--text-light);
}
.banner-icons img {
    height: 60px;
    margin-bottom: 0.5rem;
   
}
.banner-icons h3 {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Sección Diferenciador */
.differentiator {
    padding: 4rem 0;
    background: var(--light-gray-bg);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
/* Tarjeta SIN EFECTO 3D/HOVER */
.card {
    background: #fff;
    border: 1px solid #ddd;
    text-align: left;
    overflow: hidden;
    /* Se eliminó la 'transition' */
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card h3, .card p {
    padding: 0 1.5rem;
}
.card h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}
.card p {
    padding-bottom: 1.5rem;
}
/* El estilo .card:hover ha sido eliminado */

/* Detalles OBTEC */
.obtec-details {
    padding: 4rem 0;
}
.obtec-details h3 { color: var(--text-dark); }
.obtec-details .info-cols {
    margin-top: 3rem;
}
.obtec-details .info-cols h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
}
.obtec-details .info-cols ol {
    padding-left: 20px;
}
.obtec-details .info-cols img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* CTA Brokers */
.cta-brokers {
    padding: 4rem 0;
    text-align: center;
    background: var(--light-gray-bg);
}
.cta-brokers h2 { color: var(--text-dark); }
.cta-brokers p {
    max-width: 700px;
    margin: 1rem auto;
}
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}
.btn-primary:hover {
    background: #3a3a7f;
}

/* Estilos para la Sección de Contacto (en página) */
.contact-section {
    padding: 4rem 0;
}
.contact-section .grid-2 {
    align-items: flex-start;
    gap: 3rem;
}
.contact-text h2 {
    text-align: left;
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}
.contact-form-wrapper {
    background: #2a3b4e url('fondo-aeropuerto.jpg') no-repeat center center; 
    background-size: cover;
    color: var(--text-light);
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 59, 78, 0.7);
    border-radius: 8px;
    z-index: 1;
}
.contact-form-wrapper h3,
.contact-form-wrapper form {
    position: relative;
    z-index: 2;
}
.contact-form-wrapper h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
}
.contact-form-wrapper input[type="email"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
}
.contact-form-wrapper .btn-submit {
    background: var(--btn-contact-gold);
    color: var(--text-dark);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}
.contact-form-wrapper .btn-submit:hover {
    background: #b88b1a;
}
.sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---- Estilos para el Pie de Página ---- */
.main-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}
.main-footer .footer-logo {
    height: 100px;
    margin-bottom: 1rem;
}
.main-footer p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Botón Volver Arriba */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    line-height: 18px;
}
#scrollToTopBtn:hover {
    background-color: var(--medium-gray);
}


/* ================================================= */
/* =========== ESTILOS DEL NUEVO MODAL =========== */
/* ================================================= */

.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    z-index: 1000;
    /* Usamos flex para centrar el modal */
    justify-content: center;
    align-items: center;
}

/* Clase que se añade con JS para mostrar el modal */
.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #2a3b4e;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px; /* Ancho máximo del modal */
    color: var(--text-light);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover {
    color: #eee;
}

.modal-content h3 {
    color: var(--text-light);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Grid para los campos de 2 columnas */
.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    background: var(--text-light);
    /* Píldoras redondeadas */
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
}

.modal-form textarea {
    border-radius: 20px; /* Textarea un poco menos redondeado */
    min-height: 100px;
    resize: vertical;
}

.modal-submit-btn {
    background: var(--modal-btn-yellow);
    color: var(--text-dark);
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    margin-top: 0.5rem;
}
.modal-submit-btn:hover {
    background: #d4a737;
}

.modal-footer-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.info-item span {
    font-size: 1.2rem;
    color: var(--modal-btn-yellow);
}


/* ---- Media Queries (Responsivo) ---- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .navbar .container {
        flex-direction: column;
    }
    .navbar nav ul {
        flex-direction: column;
        text-align: center;
        margin-top: 1rem;
    }
    .navbar nav li {
        margin: 5px 0;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .services-list .services-image {
        order: -1; 
    }

    .banner-icons .container {
        flex-wrap: wrap;
    }
    .icon-item {
        width: 50%;
        margin-bottom: 1rem;
    }
    
    .contact-text h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Ajustes del Modal en Móvil */
    .form-grid-modal {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    .modal-content {
        padding: 2rem 1.5rem;
    }
    .modal-content h3 {
        font-size: 1.5rem;
    }
    .modal-footer-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}