/* =========================================================
   VARIABLES Y RESET
   ========================================================= */
:root {
    --primary-blue: #001f5c;
    --tech-blue: #0056D2;
    --accent-orange: #E67E22;
    --dark-grey: #1a1a1a;
    --light-grey: #F4F7F6;
    --text-color: #333333;
    --white: #FFFFFF;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --shadow-menu: 0 20px 50px rgba(0,0,0,0.15);
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.header { background: var(--white); padding: 15px 0; width: 100%; position: fixed; top: 0; z-index: 2000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary-blue); font-family: var(--font-header); }
.logo span { color: var(--tech-blue); font-weight: 300; }
.nav-logo { height: 40px; display: inline-block; vertical-align: middle; margin-right: 10px; }

.main-nav ul { display: flex; align-items: center; }
.main-nav ul li a { padding: 10px 15px; color: var(--dark-grey); font-weight: 600; font-size: 0.9rem; }

.mobile-menu-icon { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-blue); }

/* Mega Menu */
.has-submenu { position: static; }
.megamenu {
    position: absolute; top: 100%; left: 0; width: 100vw; background: var(--white);
    padding: 40px 0; border-top: 3px solid var(--tech-blue); opacity: 0; visibility: hidden;
    box-shadow: var(--shadow-menu); transition: var(--transition);
}
.has-submenu:hover .megamenu { opacity: 1; visibility: visible; }
.grid-megamenu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.menu-category h4 { color: var(--tech-blue); margin-bottom: 15px; font-size: 0.9rem; }
.menu-category ul { display: flex; flex-direction: column; gap: 10px; }
.menu-category ul li a { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; padding: 5px 0; }

/* =========================================================
   HERO & SECTIONS
   ========================================================= */
.hero { 
    height: 100vh; background: linear-gradient(rgba(0,31,92,0.8), rgba(0,31,92,0.8)), url('../img/hero.jpg') center/cover;
    display: flex; align-items: center; text-align: center; color: var(--white); padding-top: 80px;
}
.hero h1 { font-size: 3.5rem; font-family: var(--font-header); margin-bottom: 20px; }
.hero-btns { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.btn-hero-primary { background: var(--tech-blue); color: var(--white); padding: 15px 30px; border-radius: 5px; font-weight: 700; }
.btn-hero-secondary { border: 2px solid var(--white); color: var(--white); padding: 13px 30px; border-radius: 5px; }

.section-title { text-align: center; font-size: 2.2rem; margin: 60px 0; color: var(--primary-blue); font-family: var(--font-header); }

.grid-outcomes, .advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.outcome-card, .advantage-item { padding: 30px; background: var(--light-grey); border-radius: 10px; text-align: center; }

/* Contact */
.contact { padding: 80px 0; background: #eee; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-form-box { background: var(--white); padding: 40px; border-radius: 10px; }
.contact-form-box input, .contact-form-box textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; }

/* =========================================================
   RESPONSIVE DESIGN (EL MOTOR PARA CELULARES)
   ========================================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .grid-megamenu { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
}

@media (max-width: 768px) {
    /* Menu Móvil */
    .mobile-menu-icon { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: -100%; width: 100%; background: var(--white);
        flex-direction: column; transition: 0.5s; border-top: 1px solid #eee;
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav ul li { width: 100%; border-bottom: 1px solid #f9f9f9; }
    .main-nav ul li a { display: block; padding: 20px; width: 100%; }
    
    .megamenu { position: relative; opacity: 1; visibility: visible; display: none; width: 100%; padding: 10px 20px; border: none; box-shadow: none; }
    .has-submenu:hover .megamenu { display: block; }
    .grid-megamenu { grid-template-columns: 1fr; gap: 20px; }

    /* Layouts */
    .hero { height: auto; padding: 120px 0 80px 0; }
    .hero-btns { flex-direction: column; align-items: center; }
    .grid-outcomes, .advantage-grid, .contact-wrapper { grid-template-columns: 1fr; }
    
    .contact-wrapper { text-align: center; }
    .section-title { font-size: 1.8rem; }
    /* =========================================================
   MOBILE FIX - ANTI "TODO FEO"
   ========================================================= */

@media (max-width: 768px) {
    /* 1. Ajuste de Logo para que no ocupe 3 líneas */
    .logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
    .logo-text span { display: block; font-size: 0.7rem; } /* Subtexto pequeño */

    /* 2. Ocultar Menú y posicionarlo como Overlay */
    .main-nav {
        position: fixed; top: 70px; left: -100%; width: 100%; height: 100vh;
        background: #fff; transition: 0.4s; overflow-y: auto; padding-bottom: 100px;
    }
    .main-nav.active { left: 0; }

    /* 3. Convertir Megamenu en Lista Vertical Simple */
    .megamenu {
        position: relative; width: 100%; opacity: 1; visibility: visible;
        display: none; box-shadow: none; border: none; padding: 10px 20px;
        background: var(--light-grey);
    }
    
    /* Mostrar megamenu al hacer click o hover en móvil */
    .has-submenu.open .megamenu { display: block; }

    .grid-megamenu {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 20px; padding: 0;
    }

    .menu-category h4 {
        margin-bottom: 10px; color: var(--tech-blue);
        border-bottom: 1px solid #ddd; padding-bottom: 5px;
    }

    /* 4. Botón de Agendar en Móvil */
    .btn-cta-mobile {
        background: var(--primary-blue); color: #fff !important;
        text-align: center; margin: 20px; border-radius: 5px; display: block;
    }

    /* 5. Hero Section en móvil (Ajuste de texto gigante) */
    .hero h1 { font-size: 1.8rem !important; padding: 0 10px; }
    .hero-btns { flex-direction: column; gap: 10px; }
}
}
/* Estilo de la Card */
.outcome-card {
    padding: 50px 35px; /* Más espacio interno */
    text-align: left; /* Alineación a la izquierda para mejor lectura */
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--tech-blue); /* Acento superior profesional */
}

.outcome-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    height: 3em; /* Mantiene los títulos alineados si tienen 2 líneas */
    display: flex;
    align-items: center;
}

/* Párrafo introductorio */
.main-benefit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Lista de beneficios */
.benefit-list {
    padding: 0;
    margin: 0;
}

.benefit-list li {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.benefit-list li i {
    color: var(--tech-blue);
    font-size: 0.9rem;
    margin-top: 4px;
}

.benefit-list li strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Hover effect */
.outcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #fff;
}