/* --- VARIABLES --- */
:root {
    --primary-color: #1f3c88;
    --secondary-color: #c5a059;
    --accent-color: #2980b9;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 80px; /* Logo más grande */
    width: auto;
    display: block;
}

/* MENU DESKTOP */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li.has-submenu > a::after {
    content: ' \25BE'; /* Flecha hacia abajo */
    font-size: 14px;
    color: var(--secondary-color);
    margin-left: 5px;
}

nav ul li:hover > a {
    color: var(--primary-color);
}

/* SUBMENU DESKTOP */
nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 3px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li ul li a {
    padding: 15px 20px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid #f0f0f0;
}

nav ul li ul li:hover > a {
    background: var(--bg-light);
    padding-left: 25px; /* Efecto animado sutil */
}

/* BOTÓN MÓVIL */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: var(--white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out both;
}

.hero p {
    margin-bottom: 35px;
    font-size: 19px;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* BOTONES */
.btn-group {
    display: flex;
    gap: 25px;
    animation: fadeInUp 1s ease-out 0.4s both;
    margin-top: 45px;
}

.btn {
    padding: 22px 60px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn i {
    font-size: 24px;
}

.btn-primary { 
    background: var(--primary-color); 
    color: var(--white); 
    box-shadow: 0 5px 20px rgba(31, 60, 136, 0.5);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover { 
    background: #152b66; 
    border-color: #152b66;
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(31, 60, 136, 0.6);
}

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

.btn-secondary:hover { 
    background: var(--white); 
    color: var(--primary-color);
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECCIÓN VENTAJAS (CARDS) --- */
.section { 
    padding: 100px 5%; 
    text-align: center; 
    background: var(--white); 
}

.section-title {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.cards { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

.card { 
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: 12px; 
    border: 1px solid #eee;
    border-bottom: 4px solid var(--secondary-color);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 { 
    color: var(--text-dark); 
    margin-bottom: 15px; 
    font-size: 20px;
}

.card p { 
    font-size: 15px; 
    color: var(--text-light); 
}

/* --- SECCIÓN DE CONFIANZA (STATS) --- */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- FOOTER --- */
footer { 
    background: #0f1c3f; 
    color: rgba(255,255,255,0.7); 
    text-align: center; 
    padding: 40px 20px; 
    font-size: 13px; 
}

footer strong {
    color: var(--white);
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* --- MEDIA QUERIES (MÓVIL) --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        align-items: flex-start;
    }

    nav ul.active { display: flex; }

    nav ul li { width: 100%; }
    
    nav ul li a { 
        padding: 15px 25px; 
        border-bottom: 1px solid #f0f0f0; 
        width: 100%;
    }

    nav ul li ul {
        position: static;
        display: none;
        width: 100%;
        background: #f9f9f9;
        box-shadow: none;
        border-top: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    nav ul li.open-submenu > ul { display: flex; }
    
    nav ul li.has-submenu > a::after {
        float: right;
    }

    .hero h1 { font-size: 36px; }
    .btn-group { flex-direction: column; gap: 15px; }
    .btn { width: 100%; padding: 18px 20px; font-size: 18px; }
    .btn i { font-size: 20px; }
}
