/* =================================================================
   1. CORE DEL SISTEMA (VARIABLES Y RESET)
   ================================================================= */
:root {
    --bg-base: #1E1E1E;       /* Carbón Profundo */
    --bg-card: #2A2A2A;       /* Gris Elevado */
    --color-primary: #76923C; /* Verde Advance */
    --color-white: #FFFFFF;
    --color-body: #E0E0E0;
    --font-main: 'Montserrat', sans-serif;
    --container-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-base);
    color: var(--color-body);
    font-family: var(--font-main);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =================================================================
   2. ESTILOS DE ESCRITORIO (ESTADO APROBADO)
   ================================================================= */

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* BOTONES */
.btn-primary, .btn-ghost {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    transition: 0.3s;
}
.btn-primary { background-color: var(--color-primary); color: #fff; border: none; }
.btn-primary:hover { background-color: #5d752f; }

.btn-ghost { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-ghost:hover { background-color: #fff; color: #000; }

/* DATA BAR */
.data-bar {
    background-color: #000;
    height: 35px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #333;
    position: relative; z-index: 2001;
}
.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    color: #aaa; font-size: 11px; line-height: 35px;
}
@keyframes ticker { 100% { transform: translate(-100%, 0); } }

/* HEADER FLOTANTE */
.main-header {
    position: fixed;
    top: 35px;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
    transition: background 0.3s;
}
.main-header.scrolled { background: rgba(20, 20, 20, 0.95); padding: 10px 0; }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { color: #fff; font-size: 12px; font-weight: 500; }
.logo img { height: 40px; width: auto; }

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #000;
}
#heroVideo {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.5;
    z-index: 0;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* --- SISTEMA DE GRILLAS --- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.toolkit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.services-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; align-items: stretch; }

.dashboard-grid, .philosophy-grid, .academy-grid, .pillars-grid, .partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }

.reports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }

/* TARJETAS GENERALES */
.card-dark, .widget-card, .toolkit-card, .course-card {
    background-color: var(--bg-card);
    padding: 30px;
    border: 1px solid #333;
    display: flex; flex-direction: column; height: 100%;
    transition: transform 0.3s ease;
}
.card-dark:hover, .toolkit-card:hover, .course-card:hover { transform: translateY(-5px); border-color: var(--color-primary); }
/* Botones al fondo */
.card-dark a, .toolkit-card a, .course-card button, .course-card a, .card-dark button { margin-top: auto; width: 100%; }

/* SECCIONES ESPECÍFICAS (CORRECCIÓN DE ESTILO AQUÍ) */
.toolkit-strip { 
    padding: 80px 0; 
    background-color: #1A1A1A; /* Fondo oscuro elegante */
    border-top: 4px solid var(--color-primary); /* Línea verde superior */
}
.toolkit-content { display: flex; justify-content: space-between; align-items: center; gap: 60px; }

.legacy-section { padding: 120px 0; text-align: center; background-color: #121212; }
.value-prop-strip .container { display: flex; justify-content: space-around; }

/* CALCULADORAS */
.profile-calc-box { background: #121212; padding: 40px; border: 1px solid #333; }
.profile-calc-box > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.bloomberg-input label { display: block; color: #76923C; margin-bottom: 10px; font-size: 11px; font-weight: 700; }
.bloomberg-input input, .bloomberg-input select { width: 100%; padding: 15px; background: #000; border: 1px solid #444; color: #fff; font-size: 14px; }

.report-cover-box { height: 150px; background: #000; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.report-img { max-height: 100px; filter: brightness(0.6) grayscale(30%); transition: 0.3s; }
.card-dark:hover .report-img { filter: none; transform: scale(1.05); }

/* MODALES */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; display: none; justify-content: center; align-items: center; padding: 20px; overflow-y: auto; }
.modal-content { background: #1E1E1E; padding: 40px; width: 90%; max-width: 600px; position: relative; border: 1px solid #76923C; }

/* FOOTER */
.social-icons a { color: #fff; font-size: 18px; margin: 0 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--color-primary); }
footer img { height: 40px; width: auto; margin: 0 auto; }


/* =================================================================
   3. ZONA MÓVIL PROTEGIDA (SOLO SE ACTIVA EN CELULAR)
   ================================================================= */
@media (max-width: 768px) {
    
    /* HEADER SÓLIDO */
    .main-header { position: relative !important; top: 0 !important; background: #000 !important; padding: 15px 0 !important; height: auto !important; }
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { flex-direction: column; gap: 15px; padding: 0; width: 100%; text-align: center; }
    .logo img { height: 35px !important; margin: 0 auto !important; } 
    .main-header .btn-primary { width: 100%; max-width: 250px; }

    /* HERO ADAPTADO */
    .hero-section { height: 60vh !important; background-attachment: scroll !important; }
    .hero-content h1 { font-size: 28px !important; padding: 0 10px; line-height: 1.3 !important; }
    .hero-content p { font-size: 14px !important; padding: 0 20px; }

    /* REGLA DE ORO: TODO A 1 COLUMNA */
    .services-grid, .toolkit-grid, .reports-grid, 
    .dashboard-grid, .philosophy-grid, .academy-grid, 
    .pillars-grid, .partners-grid, .services-grid-2x2, 
    .profile-calc-box > div, .grid-3, .value-prop-strip .container {
        display: flex !important; 
        flex-direction: column !important; 
        gap: 40px !important;
        grid-template-columns: 1fr !important;
    }
    
    /* AJUSTES ESPECÍFICOS */
    .toolkit-content { flex-direction: column !important; text-align: center !important; gap: 30px !important; }
    .toolkit-strip .btn-ghost, .toolkit-strip .btn-primary { width: 100% !important; }
    
    /* Sobre Advance */
    .mission-section .grid-2 { display: flex !important; flex-direction: column !important; }
    
    /* Inversiones */
    .authority-section div[style*="flex"] { flex-direction: column !important; gap: 20px !important; }
    .authority-section span { transform: rotate(90deg); margin: 10px 0; }
    
    /* Formación */
    .masterclass-container { display: flex !important; flex-direction: column-reverse !important; gap: 30px !important; }
    
    /* General */
    .container { width: 100% !important; padding: 0 20px !important; }
    section { padding: 60px 0 !important; }
    footer img { height: 35px !important; }
}