/* ===== VARIABLES CORPORATIVAS ===== */
:root {
    --primary-color: #01153E; /* Azul Marino muy oscuro del logo */
    --accent-color: #0033A0;  /* Azul brillante del logo */
    --accent-hover: #002277;
    --text-color: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ===== RESET & GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ===== NAVBAR CON LOGO PROPORCIONAL Y PRESENCIA CONSIDERABLE ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(1, 21, 62, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px; /* Margen balanceado */
}

/* Contenedor del logo optimizado para que no se vea chico */
.logo-container {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.main-logo {
    height: 95px; /* Aumentado sustancialmente para una presencia clara pero no agresiva */
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links .btn-outline {
    border: 2px solid var(--accent-color);
    padding: 10px 24px;
    border-radius: 6px;
    color: var(--accent-color);
    font-weight: 700;
}

.nav-links .btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    color: var(--white);
    padding: 140px 20px;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(1, 21, 62, 0.85), rgba(0, 51, 160, 0.75)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
    animation: movimientoFondo 25s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes movimientoFondo {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.15;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #E2E8F0;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 51, 160, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SECCIONES ===== */
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--white); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS SOLUCIONES ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 15px 30px rgba(1, 21, 62, 0.08);
}

.icon-accent {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.4rem; font-weight: 700; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== SERVICIOS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover { background-color: var(--bg-light); }

.service-item i {
    font-size: 2rem;
    color: var(--accent-color);
    background: rgba(0, 51, 160, 0.08);
    padding: 20px;
    border-radius: 12px;
}

.service-item h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.25rem; font-weight: 700; }
.service-item p { color: var(--text-light); }

/* ===== NOSOTROS ===== */
.flex-row { display: flex; align-items: center; gap: 50px; }
.nosotros-text { flex: 1; }
.nosotros-img { flex: 1; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; color: var(--primary-color); font-weight: 600; }
.check-list i { color: var(--accent-color); font-size: 1.2rem; }

/* ===== SECCIÓN DE CONTACTO MEJORADA ===== */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 110px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.badge {
    background: rgba(0, 51, 160, 0.3);
    color: #63B3ED;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 179, 237, 0.3);
}

.contact-info-panel h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-desc {
    color: #A0AEC0;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.info-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-icon {
    font-size: 1.5rem;
    color: #63B3ED;
    background: rgba(99, 179, 237, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.info-text span {
    display: block;
    font-size: 0.85rem;
    color: #A0AEC0;
}

.info-text strong {
    font-size: 1.1rem;
    color: var(--white);
}

/* Formulario Moderno */
.contact-form-panel {
    background: var(--white);
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
}

.modern-form .form-group {
    margin-bottom: 22px;
}

.modern-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.modern-form input, 
.modern-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    outline: none;
}

.modern-form input:focus, 
.modern-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background-color: #00081C;
    color: #718096;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== WIDGET DE CHAT ONLINE (WHATSAPP) ===== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: transform 0.3s ease;
}

.chat-button:hover { transform: scale(1.08); }

.chat-pulse {
    position: absolute;
    width: 100%; height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulso 2s infinite;
    opacity: 0.4;
}

@keyframes pulso {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.chat-window.open { display: flex; animation: aparecer 0.3s ease; }

@keyframes aparecer {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chat-avatar {
    width: 40px; height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.chat-status-info h4 { font-size: 0.95rem; font-weight: 700; }
.chat-status-info p { font-size: 0.75rem; color: #CBD5E0; }
.status-dot { width: 8px; height: 8px; background: #25D366; border-radius: 50%; display: inline-block; margin-right: 4px; }

.close-chat {
    position: absolute; right: 15px; top: 12px;
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; opacity: 0.7;
}
.close-chat:hover { opacity: 1; }

.chat-body { padding: 20px; background-color: #F7FAFC; }
.chat-msg { background: var(--white); padding: 12px; border-radius: 0 12px 12px 12px; font-size: 0.9rem; color: #4A5568; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }

.chat-footer { padding: 15px; background: var(--white); text-align: center; }
.chat-send-btn {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    background-color: #25D366; color: white; padding: 10px; border-radius: 6px;
    font-weight: 700; font-size: 0.9rem; transition: var(--transition);
}
.chat-send-btn:hover { background-color: #20BA56; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .flex-row, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--white);
        padding: 20px 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; padding: 10px 0; }
    .hamburger { display: block; }
    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .main-logo { height: 70px; } /* Ajuste fino en móviles */
    .contact-form-panel { padding: 25px; }
}
