/* ==========================================================================
   SISTEMA DE DISEÑO OFICIAL - XXVII CONGRESO INTERNACIONAL 2027
   El Salvador 2027 - Las Enseñanzas del Maitreya
   ========================================================================== */

:root {
    --bg-cosmic-deep: #010206;
    --bg-cosmic-mid: #030713;
    --bg-cosmic-glow: #0d1a38;
    --bg-card: rgba(11, 20, 40, 0.78);
    --bg-card-hover: rgba(15, 27, 55, 0.9);
    --bg-card-header: linear-gradient(135deg, rgba(255, 170, 20, 0.18) 0%, rgba(15, 23, 42, 0.75) 100%);
    
    --gold-primary: #F59E0B;
    --gold-hover: #D97706;
    --gold-dark: #B45309;
    --gold-light: #FDE68A;
    --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    --gold-border: rgba(245, 158, 11, 0.45);
    --gold-glow: 0 0 25px rgba(245, 158, 11, 0.35);
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-gold: #FCD34D;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 140, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 50% 25%, var(--bg-cosmic-glow) 0%, var(--bg-cosmic-mid) 55%, var(--bg-cosmic-deep) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Dinámico de Estrellas y Rayos */
#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Marca de Agua / Logo de Fondo Difuminado (Estilo Index y Subpáginas) */
@keyframes watermarkFloat {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.04); }
}

.bg-watermark-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vw, 680px);
    height: min(85vw, 680px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.32;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/logo_dorado_fuego_perfecto.png?v=2027') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 55px rgba(255, 175, 25, 0.55));
    animation: watermarkFloat 8s ease-in-out infinite alternate;
}

.bg-watermark-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Contenedor Principal */
.app-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

/* ==========================================================================
   NAVBAR SUPERIOR (Estilo Index del Congreso)
   ========================================================================== */
.navbar-congress {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 7, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.nav-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0.45rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow: visible;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
    transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
    transform: scale(1.08);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-title {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    color: #FDE68A;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
    line-height: 1.22;
    max-width: 250px;
    transition: var(--transition);
}

.nav-brand:hover .nav-brand-title {
    color: #FFFFFF;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
}

.nav-brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    list-style: none;
    margin: 0;
    padding: 0.2rem 0.2rem 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #F59E0B rgba(3, 7, 19, 0.8);
}

/* Barra de desplazamiento dorada premium en el menú superior */
.nav-menu::-webkit-scrollbar {
    height: 5px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(3, 7, 19, 0.7);
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #B45309, #F59E0B, #FDE68A);
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: #FCD34D;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    padding: 0.42rem 0.62rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}

.nav-link.active {
    color: #030713;
    background: var(--gold-gradient);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Iconos Metálicos Premium de Navegación */
.nav-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(245, 158, 11, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-link:hover .nav-icon {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 14px rgba(251, 191, 36, 0.65));
    transform: scale(1.15) translateY(-1px);
}

.nav-link.active .nav-icon,
.btn-gold .nav-icon {
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35));
}

.nav-link.active .nav-icon path,
.nav-link.active .nav-icon rect,
.nav-link.active .nav-icon circle,
.btn-gold .nav-icon path,
.btn-gold .nav-icon rect,
.btn-gold .nav-icon circle {
    fill: #030713 !important;
    stroke: #030713 !important;
}

.btn-gold:hover .nav-icon {
    transform: scale(1.1);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold-light);
    font-size: 1.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ==========================================================================
   TIPOGRAFÍA Y TÍTULOS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.section-title .text-gold {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   TARJETAS GLASSMORPHISM
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0.75;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   BOTONES Y ENLACES
   ========================================================================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--gold-gradient);
    color: #030713;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.65);
    filter: brightness(1.08);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.6);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold-light);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
.footer-congress {
    margin-top: auto;
    background: rgba(2, 4, 10, 0.92);
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    padding: 2.5rem 1.5rem 1.8rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-logo,
.footer-brand img,
.footer-congress img {
    max-width: 52px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.45));
}

.footer-brand:empty,
.footer-brand h4:empty {
    display: none;
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 380px;
}

.footer-links {
    flex: 1 1 auto;
}

.footer-links h5, .footer-contact h5 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateY(-2px);
}

.footer-contact {
    flex: 0 0 auto;
    text-align: right;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    text-decoration: underline;
    color: #FFFFFF;
}

.footer-contact a.whatsapp-link {
    color: #34D399;
    font-weight: 600;
}

.footer-contact a.whatsapp-link:hover {
    color: #6EE7B7;
    text-decoration: underline;
}

/* Botón Flotante Oficial de WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 0.7rem 1.15rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.45), 0 0 15px rgba(52, 211, 153, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.6), 0 0 25px rgba(52, 211, 153, 0.5);
    color: #FFFFFF !important;
}

.floating-whatsapp-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .floating-whatsapp span.floating-text {
        display: none;
    }
    .floating-whatsapp {
        padding: 0.8rem;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==========================================================================
   AFICHE / PÓSTER OFICIAL
   ========================================================================== */
.poster-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.poster-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.35);
    border: 2px solid rgba(245, 158, 11, 0.6);
    background: #030713;
    transition: var(--transition);
    text-align: center;
}

.poster-frame:hover {
    transform: scale(1.02);
    border-color: var(--gold-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95), 0 0 50px rgba(245, 158, 11, 0.6);
}

.poster-preview-img {
    width: 100%;
    max-height: 720px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 920px) {
    .poster-showcase-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1360px) {
    .nav-container {
        padding: 0.45rem 1rem;
        gap: 0.5rem;
    }
    .nav-brand-title {
        font-size: 0.70rem;
        max-width: 195px;
    }
    .nav-menu {
        gap: 0.16rem;
    }
    .nav-link {
        padding: 0.36rem 0.46rem;
        font-size: 0.73rem;
        gap: 0.25rem;
    }
    .nav-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(3, 7, 19, 0.97);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--gold-border);
        gap: 0.6rem;
        display: none;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-contact {
        text-align: left;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
