﻿/* ==========================================================================
   1. VARIABLES, BASES Y TIPOGRAFÍA
   ========================================================================== */
:root {
    --primary-blue: #0066ff;
    --accent-orange: #ff4500;
    --accent-red: #e31212;
    --bg-dark: #000;
    --text-main: #fff;
    --text-dim: #888;
    --light-gray: #f9f9f9;
    --transition: all 0.3s ease;
}

/* Aplicación global de la fuente y justificado */
* { 
    box-sizing: border-box; 
    font-family: 'roboto', sans-serif !important;
}

body {
    margin: 0;
    background-color:#000 !important;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    text-align: justify; /* Justificado base universal */
    hyphens: auto;
}

/* Ajuste específico para H3: Centrados siempre */
h3 {
    text-align: center !important;
}

a{
    color: #E41C36;
    font-weight: bold;
}

a:hover, a:focus{
    color: #E41C36;
    font-weight: bold;
}


/* ==========================================================================
   2. HERO & NUEVA DISTRIBUCIÓN PARALELA (Proyecto ZEO)
   ========================================================================== */
.corp-hero {
    height: 250px;
    margin-top: 60px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative;
    
    /* --- EL TRUCO DE LA LUZ BLANCA ABAJO --- */
    /* Genera una sombra difuminada blanca interna (inset) en la parte inferior */
    box-shadow: inset 0 -60px 80px -20px rgba(255, 255, 255, 1), 
                0 15px 30px rgba(255, 255, 255, 0.4); 
    
    /* Pequeño truco para suavizar los bordes acoplados al fondo negro */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    z-index: 1;
}

.corp-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.corp-section-title {
    font-family: 'roboto', sans-serif !important; 
    color: #E41C36;
}

.corp-main-title {
    text-align: center; 
    margin-bottom: 40px; 
    font-family: 'roboto', sans-serif !important; 
    color: #E41C36;
}

.corp-divider {
    opacity: 0.1; 
    margin: 20px 0;
}


/* Contenedor principal en dos columnas (Texto Izquierda / Eje / Tarjetas Derecha) */
.history-timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 2px 1fr; 
    gap: 40px;
    position: relative;
    background-color: #000;
}

/* Columna Izquierda fija/sticky para el texto de introducción (the_content) */
.hero-lead-sticky {
    position: sticky;
    top: 120px; 
    height: fit-content;
}

.hero-lead-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #FFFFFF !important; /* Blanco puro según la imagen de referencia */
    text-align: justify;
    padding-right: 20px;
}

/* Eje central: Línea blanca delgada divisoria vertical */
.timeline-vertical-axis {
    background: rgba(255, 255, 255, 0.8);
    height: 100%;
    width: 2px;
}

/* Columna Derecha donde caen de forma secuencial las tarjetas del timeline */
.timeline-cards-side {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 20px;
}

/* ==========================================================================
   3. MÓDULOS TIPO "GLASS" (VIDRIO ESMERILADO)
   ========================================================================== */
.milestone-glass-card {
    background: rgba(255, 255, 255, 0.06); /* Fondo ultra-translúcido */
    backdrop-filter: blur(12px) saturate(180%); /* Efecto esmerilado de vidrio */
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12); /* Borde sutil brillante tipo cristal */
    border-radius: 24px; /* Bordes redondeados pronunciados */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); /* Sombra pesada para dar profundidad sobre negro */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.milestone-glass-card:hover {
    transform: translateY(-5px);
    border-color:#fff; /* Destello sutil con el rojo de Televen */
    box-shadow: 0 20px 40px rgba(228, 28, 54, 0.15);
}

/* Contenedor del elemento interno */
.milestone-content {
    background: transparent; /* Quitamos el antiguo fondo gris sólido */
    overflow: hidden;
    text-align: justify;
}

/* Imagen dentro de la tarjeta Glassmorphism */
.milestone-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    display: block;
}

.milestone-text { 
    padding: 30px; 
}

/* Tipografías internas adaptadas para fondo oscuro */
.milestone-title {
    color: #FFFFFF !important; /* Forzado a blanco para el contraste sobre el vidrio */
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left !important;
}

.milestone-description {
    color: #E0E0E0 !important; /* Gris claro/plata de excelente legibilidad */
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.milestone-description * {
    color: #E0E0E0 !important;
}

/* Contenedor de Botones de Acción */
.milestone-actions { 
    display: flex; 
    gap: 15px; 
    margin-top: 25px; 
    flex-wrap: wrap; 
}

.btn-milestone {
    padding: 10px 24px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px; /* Botones ovalados/píldora como en la imagen */
    transition: var(--transition); 
    cursor: pointer;
    text-align: center; 
    display: inline-block;
}

/* Estilo exacto "VER GALERÍA" en base a la captura */
.btn-gallery { 
    background: transparent;
    border: 2px solid #E41C36; 
    color: #E41C36; 
}
.btn-gallery:hover { 
    background: #E41C36; 
    color: #fff; 
    box-shadow: 0 0 15px rgba(228, 28, 54, 0.4);
}

.btn-video { 
    background: #E41C36; 
    color: #fff; 
    border: 2px solid #E41C36; 
}
.btn-video:hover { 
    background: #c31329; 
    border-color: #c31329; 
    box-shadow: 0 0 15px rgba(228, 28, 54, 0.4);
}

/* ==========================================================================
   4. CULTURA Y VALORES (SIN TOCAR - RESPETA FUNCIONAMIENTO)
   ========================================================================== */
.culture-section { padding: 80px 5%; background: #000; color: #222; }

.culture-wrapper { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    background: #E41C36; 
    padding: 40px; 
    border-radius: 25px; 
    max-width: 1100px; 
    margin: 0 auto;
}

.card { 
    background: #fff; 
    padding: 30px; 
    border-radius: 15px; 
    height: 100%; 
    text-align: justify; 
}

.card h2 { 
    color: #000; 
    margin-top: 0; 
    font-size: 1.8rem; 
    text-align: center; 
}

.values-list { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    list-style: none; 
    padding: 0; 
}

.values-list li { 
    background: #f9f9f9; 
    padding: 10px; 
    border-radius: 6px; 
    font-weight: 600; 
    font-size: 1.2rem; 
    border-left: 3px solid var(--accent-orange); 
    text-align: justify;
}

/* ==========================================================================
   5. SEDES Y MAPAS (Estructura de Columnas Fijas - Proyecto ZEO)
   ========================================================================== */
.location-section { 
    background: #000; 
    padding: 40px 5% 80px; 
    color: #333; 
}

.maps-container { 
    display: grid; 
    /* Forzamos dos columnas exactas de igual tamaño en escritorio */
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.map-card { 
    background: #fff; 
    border-radius: 20px; /* Bordes más redondeados y suaves según imagen 2 */
    overflow: hidden; 
    border: 2px solid #E41C36; /* Borde naranja/rojo de Televen */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.map-card:hover { 
    transform: translateY(-5px); 
}

.map-card iframe { 
    width: 100%; 
    height: 280px; /* Ajuste de altura para mejor proporción del mapa */
    border: 0; 
    display: block; 
}

.map-info { 
    padding: 30px 25px; 
    border-top: 1px solid #eee; 
    text-align: center; /* Centrado del contenido según imagen 2 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Títulos de las Sedes ("Caracas, Venezuela" / "Miami, USA") */
.map-info h3 { 
    margin: 0 0 15px; 
    color: #E41C36; 
    font-size: 1.15rem; 
    font-weight: 700;
    text-align: center !important; /* Forzado al centro */
}

/* Texto de las direcciones */
.map-info p {
    margin: 0;
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center !important; /* Texto centrado como se ve en la imagen 2 */
}

/* ==========================================================================
   6. MODAL
   ========================================================================== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(8px); z-index: 4000;
    justify-content: center; align-items: center;
}

.modal-container {
    background: #111; 
    width: 90%; 
    max-width: 800px; 
    border-radius: 15px;
    position: relative; 
    border: 1px solid #fff; 
    padding: 40px 20px 20px;
    text-align: justify;
}

.close-modal { 
    position: absolute; 
    top: 10px; 
    right: 20px; 
    font-size: 35px; 
    color: #fff; 
    cursor: pointer; 
    line-height: 1; 
}

.modal-overlay.active { display: flex; }

/* ==========================================================================
   7. AJUSTES RESPONSIVOS (MOBILE OPTIMIZED)
   ========================================================================== */
@media (max-width: 768px) {
    .corp-hero { height: 60px; }

    /* Cambiamos la grilla a un flujo de una sola columna en pantallas móviles */
    .history-timeline-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }

    .hero-lead-sticky {
        position: relative;
        top: 0;
    }

    .hero-lead-content {
        padding-right: 0;
        font-size: 1rem;
    }

    .timeline-vertical-axis {
        display: none; /* Se remueve la línea divisoria en layouts móviles */
    }

    .timeline-cards-side {
        padding-left: 0;
        gap: 25px;
    }

    .milestone-glass-card {
        border-radius: 18px;
    }

    .milestone-text {
        padding: 20px;
    }

    .milestone-title {
        font-size: 1.2rem;
    }

    .milestone-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-milestone {
        width: 100%;
    }

    .culture-wrapper { padding: 20px; border-radius: 15px; }
    .values-list { grid-template-columns: 1fr; }
    .maps-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .history-timeline-container {
        padding: 20px 10px;
    }
}