/* Variables de color */
:root {
    --primary-color: #0B2038; /* Azul marino muy oscuro / Seriedad */
    --secondary-color: #1A406B; /* Azul intermedio */
    --accent-color: #0066FF; /* Azul brillante para CTAs */
    --whatsapp-color: #25D366;
    --text-dark: #333333;
    --text-light: #F4F4F4;
    --bg-light: #F9FAFB;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}

.text-center { text-align: center; }

/* Utilidades de espaciado */
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.p-2 { padding: 2rem !important; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--text-light); }

/* --- NUEVA CLASE PARA IMÁGENES DE CONTENIDO --- */
.content-img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* ----------------------------------------------- */

/* Navegación */
header {
    /* Fondo blanco para contraste con el logo azul */
    background: #FFFFFF;
    /* Texto predeterminado oscuro */
    color: var(--text-dark); 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* --- AJUSTE NUEVO DEL LOGO MIXTO (IMAGEN + TEXTO) --- */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo-img {
    max-height: 70px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    /* Color oscuro para fondo blanco (mismo azul marino que secciones dark) */
    color: var(--primary-color); 
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong { font-weight: 700; }

.logo-text .tagline {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* ---------------------------------------------------- */

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    /* Color oscuro para los enlaces del menú en desktop */
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    /* Azul brillante en hover */
    color: var(--accent-color); 
}

/* El botón de contacto dentro del menú se mantiene igual */
.nav-links .btn-primary { color: white; }
.nav-links .btn-primary:hover { color: white; }

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    /* Color oscuro para el ícono de menú en móvil contra header blanco */
    color: var(--text-dark); 
}

/* Botones Generales */
.btn-primary, .btn-whatsapp {
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}
.btn-primary:hover { background-color: #0052cc; transform: translateY(-2px); }

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
}
.btn-whatsapp:hover { background-color: #1ebc5a; transform: translateY(-2px); }

/* Hero Section */
#hero {
    background: linear-gradient(rgba(11, 32, 56, 0.8), rgba(11, 32, 56, 0.9)), url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?auto=format&fit=crop&q=80') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.center-btns { margin-top: 30px; }

/* Secciones Generales */
section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.2rem; color: var(--primary-color); }

/* Subtítulos de sección */
.subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grillas */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Estilos de Tarjetas (Reutilizables) */
.card, .card-hr-contact {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

/* Tarjeta estándar (Servicios) */
.card {
    padding: 2rem;
    color: var(--text-dark); /* Asegura texto oscuro si se usa en bg-dark */
}
.card:hover { transform: translateY(-5px); }
.card .icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1rem; }
.card h3 { margin-bottom: 1rem; color: var(--primary-color); }

/* --- ESTILOS PARA LA NUEVA SECCIÓN OPERATIVA --- */
.op-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s;
}

.op-card:hover { transform: translateY(-3px); }

.op-img {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.op-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.op-card p {
    font-size: 1rem;
    color: var(--text-dark);
}
/* ---------------------------------------------------- */

/* Diferenciadores */
.flex-split {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.split-content h2 { margin-bottom: 2rem; font-size: 2.2rem; }
.check-list { list-style: none; }
.check-list li { margin-bottom: 1.5rem; font-size: 1.1rem; }
.check-list i { color: var(--accent-color); margin-right: 10px; }

/* Imagen del CEO */
.split-image img {
    border-radius: 12px;
    object-fit: cover;
    display: block;
    border: none;
    width: auto;
    max-height: 480px;
}

/* Clientes */
.client-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-bottom: 4px solid var(--primary-color);
}
.client-card i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 1rem; }

/* Contacto */
.contact-info { margin: 2rem 0; font-size: 1.5rem; font-weight: bold; }
.contact-info i { color: var(--accent-color); margin-right: 10px; }

/* ========================================================== */
/* ESTILOS NUEVOS: Recursos Humanos / Sección RRHH */
/* ========================================================== */
.card-hr-contact {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text-dark); /* Texto oscuro dentro de tarjeta blanca */
    border-left: 5px solid var(--accent-color); /* Toque de color */
}

.card-hr-contact h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Etiqueta del cargo (Recursos Humanos) */
.card-hr-contact .tagline {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hr-links p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hr-links i { color: var(--accent-color); }
/* ========================================================== */

/* Footer */
footer { background: #071524; color: white; padding: 2rem 0; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .logo-img { max-height: 60px; }
    .logo-text { font-size: 1.3rem; }
    .logo-text .tagline { font-size: 0.9rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; 
        left: 0;
        /* Fondo oscuro para menú móvil contra header blanco */
        background: var(--primary-color); 
        padding: 1rem 0;
    }

    /* --- CAMBIADO: Enlaces en menú móvil deben ser BLANCOS contra fondo oscuro --- */
    .nav-links a {
        color: var(--text-light);
    }
    .nav-links.active { display: flex; }
    .mobile-menu {
        display: block;
        /* Ícono de menú oscuro contra header blanco */
        color: var(--text-dark); 
    }
    #hero h1 { font-size: 2.2rem; }
    .flex-split { flex-direction: column; gap: 2rem; }
    .op-img { height: 250px; }
    .split-image img { width: 100%; max-height: none; }
}