/* Layout - Estructura y diseño de página */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--color-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    padding: 0 var(--container-padding);
}

.nav-left,
.nav-right {
    display: flex;
    gap: 0;
}

.nav-right {
    justify-content: flex-end;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-text-light);
    text-decoration: none;
    transition: background-color var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.nav-button:hover {
    background-color: var(--color-primary-dark);
    border-bottom-color: var(--color-secondary);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.nav-center {
    display: flex;
    justify-content: center;
    padding: var(--spacing-sm) 0;
    position: relative;
    z-index: 10;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    top: -20px;
}

.main-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm);
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
}

.nav-mobile-menu {
    display: none;
}

.nav-mobile-link {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-link:hover {
    background-color: var(--color-primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    background-image: url('../assets/images/hero-tachira.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-2xl);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.hero-edition {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.hero-location {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-text-light);
    border-radius: var(--border-radius-full);
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-text-light);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Section spacing */
section {
    padding: var(--spacing-3xl) 0; /* Usamos 3xl en vez de 4xl para reducir el hueco vertical */
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl); /* Reducimos la separación entre el título y el contenido */
}

/* About Section */
.about-section {
    background-color: var(--color-bg-secondary);
}

.about-content p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

/* Stats Section */
.stats-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-col h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.footer-col p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* --- HEADER TIPO INSTITUCIONAL --- */
.top-bar {
    background-color: #f1f1f1;
    /* Quitamos el border-bottom azul oscuro para que se vea más limpio si prefieres */
    /* border-bottom: 4px solid #2c3e50; */
    border-bottom: 1px solid #ddd; /* O dejamos uno muy sutil gris */
    padding: 0;
    position: sticky; /* Hacemos que se pegue al bajar */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Un poco más alto para que respire */
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* --- LOGO CENTRAL (Versión Estirada) --- */
.central-logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;

    /* Aumentamos la altura para que baje más */
    width: 140px;
    height: 135px; /* Antes era 80px */

    /* Mantenemos la curva suave abajo */
    border-radius: 0 0 50% 50%;

    background: white;
    /* Sombra un poco más pronunciada para dar profundidad */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alineamos arriba... */
    padding-top: 15px; /* ...y empujamos el logo hacia abajo con padding */

    z-index: 1001;
    border-top: none;
}

.central-logo {
    width: 90px; /* Un pelín más grande */
    height: auto;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

/* Efecto opcional: que el logo crezca un poco al pasar el mouse */
.central-logo-container:hover .central-logo {
    transform: scale(1.05);
}

/* --- SOLUCIÓN PARA QUE NO TAPE EL CONTENIDO AL HACER CLIC --- */
html {
    scroll-behavior: smooth;
    /* Esto crea un "colchón" invisible arriba cuando haces clic en un enlace */
    scroll-padding-top: 120px; 
}

/* --- ESPACIADO PARA PÁGINAS INTERNAS (CONTACTO) --- */
/* Agrega esta clase al body o al main de contact.html si se ve muy pegado */
.internal-page-padding {
    padding-top: 40px; 
}

/* --- NUEVO HERO --- */
.hero-2026 {
    position: relative;
    padding: 160px 0 60px; /* Espacio arriba para el logo */
    text-align: center;
    color: white;
    overflow: hidden; /* IMPORTANTE: oculta slides extras */
}

.hero-overlay-blue {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 64, 105, 0.55), rgba(59, 130, 246, 0.58));
    z-index: 1;
}

.hero-content-2026 {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-edition {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 0 16px rgba(255, 255, 255, 0.35),
        0 0 30px rgba(255, 255, 255, 0.18);
    margin-bottom: 0;
    line-height: 1;
}

.hero-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 0 12px rgba(255, 255, 255, 0.3),
        0 0 24px rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle-blue {
    font-size: 5rem; /* EVEM 2026 gigante */
    font-weight: 900;
    color: #aaddff; /* Un azul clarito brillante */
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    margin: 20px 0;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #fff, #8ecae6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logos Grid */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    background: #ffffff; /* Fondo plano para legibilidad de logos */
    padding: 20px;
    border-radius: 20px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.partner-logo {
    height: 80px; /* Ajusta según tus logos */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* ==========================================
   EFECTO ESPECIAL: LOGO CEDIC INTERACTIVO
   ========================================== */

.cedic-interactive-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

/* El latido constante (respiración cuántica) */
.cedic-special {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: cedicPulse 2s infinite alternate;
}

/* El efecto al pasar el mouse: se encoge y rota un poco */
.cedic-interactive-link:hover .cedic-special {
    transform: scale(0.85) rotate(-5deg) !important;
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.9));
    animation: none; /* Pausa el latido para hacer el encogimiento */
}

/* El globito de texto (Tooltip) OCULTO POR DEFECTO */
.cedic-tooltip {
    position: absolute;
    bottom: -40px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;

    /* ESTO LO HACE INVISIBLE */
    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

/* La colita del globo de texto */
.cedic-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #0ea5e9;
}

/* APARECE el globito SOLO al pasar el mouse */
.cedic-interactive-link:hover .cedic-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animación de latido suave */
@keyframes cedicPulse {
    0% { filter: drop-shadow(0 0 2px rgba(14, 165, 233, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.8)); transform: scale(1.05); }
}

/* Contenedor del carrusel de fondos */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cada slide de fondo */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* ==========================================
   CONTROLES DEL CARRUSEL (Flechas)
   ========================================== */

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control span {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

/* ==========================================
   INDICADORES (Puntos abajo)
   ========================================== */

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: white;
    border-color: var(--color-secondary, #F4A261);
    transform: scale(1.3);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control span {
        font-size: 1.5rem;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-control {
        width: 35px;
        height: 35px;
    }

    .carousel-control span {
        font-size: 1.3rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* =========================================
   DISENO: TEXTO + VIDEO VERTICAL (SOBRE NOSOTROS)
   ========================================= */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* El video medira maximo 320px de ancho */
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}

.about-text-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.vertical-video-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    aspect-ratio: 9/16; /* Fuerza el formato vertical exacto */
    background: #0f172a;
    border: 6px solid #1e3a8a; /* Marco azul elegante */
}

.vertical-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* En celulares, ponemos el video debajo del texto */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}