/* ==========================================================================
   Christian Germán Salinas Fuentes - Memorial Site Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #1a243d;
    --bg-glass: rgba(19, 27, 46, 0.75);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Accents */
    --gold-primary: #e2b857;
    --gold-glow: rgba(226, 184, 87, 0.35);
    --gold-dark: #b88d2d;
    
    --bolivia-green: #10b981;
    --bolivia-green-glow: rgba(16, 185, 129, 0.3);
    
    --bolivar-blue: #0ea5e9;
    --wilstermann-red: #ef4444;
    --wilstermann-yellow: #f59e0b;
    --shalom-cyan: #06b6d4;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(226, 184, 87, 0.3);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(226, 184, 87, 0.2);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #ffffff;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

strong {
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.highlight-gold {
    color: var(--gold-primary);
    background: linear-gradient(135deg, #fef08a 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 1.25rem auto 2rem;
    border-radius: 2px;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(11, 15, 25, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

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

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-dates {
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    background: rgba(226, 184, 87, 0.1);
}

.nav-candle-btn {
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    background: rgba(226, 184, 87, 0.08);
}

.nav-candle-btn:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.audio-btn:hover, .audio-btn.playing {
    background: rgba(226, 184, 87, 0.2);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Floating Music Player Widget */
.music-floating-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
    background: rgba(19, 27, 46, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: 40px;
    padding: 0.5rem 1.25rem 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    transition: var(--transition);
}

.music-floating-widget:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
}

.widget-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.music-floating-widget.playing .widget-icon i {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.widget-info {
    display: flex;
    flex-direction: column;
}

.widget-song-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.2;
}

.widget-artist {
    font-size: 0.75rem;
    color: var(--gold-primary);
}

.widget-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.widget-play-btn:hover, .music-floating-widget.playing .widget-play-btn {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

/* Embedded YouTube Card for Guaranteed Audio Playback */
.music-iframe-card {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    z-index: 1600;
    width: 320px;
    background: rgba(19, 27, 46, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    animation: fadeInUp 0.3s ease;
}

.music-iframe-card.active {
    display: flex;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.music-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-primary);
}

.close-music-card {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: var(--transition);
}

.close-music-card:hover {
    color: #ffffff;
}

.iframe-container {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.4s ease;
}

.mobile-nav-drawer.open {
    right: 0;
}

.close-drawer-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.drawer-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-link {
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.drawer-link:hover {
    background: rgba(226, 184, 87, 0.1);
    color: var(--gold-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 9rem 0 5rem;
    background: radial-gradient(circle at 50% 20%, rgba(30, 41, 69, 0.6) 0%, var(--bg-dark) 70%);
    overflow: hidden;
}

.hero-background-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 184, 87, 0.12) 0%, rgba(16, 185, 129, 0.05) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.memorial-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(226, 184, 87, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3.25rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero-dates {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.date-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cross-date {
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
}

.date-separator {
    color: var(--text-muted);
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.hero-stat-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.hero-stat-card i {
    font-size: 1.4rem;
    color: var(--gold-primary);
}

.hero-stat-card div {
    display: flex;
    flex-direction: column;
}

.hero-stat-card strong {
    font-size: 0.95rem;
    line-height: 1.1;
}

.hero-stat-card span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.green-card i {
    color: var(--bolivia-green);
}

.hero-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: #e5e7eb;
    border-left: 3px solid var(--gold-primary);
    padding-left: 1.25rem;
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: #ffffff;
    color: #0b0f19;
}

.btn-primary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fef08a, var(--gold-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-gold-lg {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: var(--shadow-glow);
}

.btn-gold-lg:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(226, 184, 87, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-block {
    width: 100%;
}

/* Portrait Card */
.hero-portrait-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
}

.portrait-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(226, 184, 87, 0.2), transparent 70%);
    pointer-events: none;
}

.hero-portrait-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    filter: grayscale(15%) contrast(105%);
}

.portrait-caption {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.5rem 0.5rem;
}

.jersey-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--gold-primary);
    line-height: 1;
}

.portrait-caption h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.portrait-caption p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Banner Quote Section */
.banner-quote-section {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111827 50%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quote-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 1.5rem 2rem;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.quote-box p {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.6;
    color: #f3f4f6;
    margin: 0;
}

/* Section Common Headers */
.section-header {
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.gold-subtitle {
    color: var(--gold-primary);
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.white-text {
    color: #e5e7eb;
}

/* Biography Section */
.biography-section {
    padding: 6rem 0;
}

.bio-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
}

.sticky-bio-nav {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.sticky-bio-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--gold-primary);
}

.bio-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.bio-nav-item:hover, .bio-nav-item.active {
    background: rgba(226, 184, 87, 0.12);
    color: var(--gold-primary);
}

.bio-chapter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-md);
}

.chapter-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.gold-badge {
    background: rgba(226, 184, 87, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

.green-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--bolivia-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bio-chapter-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.lead-text {
    font-size: 1.15rem;
    color: #f3f4f6;
    line-height: 1.7;
}

.bio-inline-image {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, #151c2e 0%, #080b12 100%);
    text-align: center;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0.5rem 0;
}

.bio-inline-image img {
    width: auto;
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.image-caption {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
}

.bio-quote {
    border-left: 3px solid var(--gold-primary);
    background: rgba(226, 184, 87, 0.06);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.75rem 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: #f3f4f6;
}

.highlight-chapter {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.legacy-highlights {
    margin-top: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.legacy-highlights ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.legacy-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: #fff;
}

.legacy-highlights i {
    color: var(--gold-primary);
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1626 50%, var(--bg-dark) 100%);
    position: relative;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, var(--bolivia-green) 50%, rgba(239, 68, 68, 0.5) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    width: 50%;
}

.timeline-item.left-item {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.right-item {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(226, 184, 87, 0.4);
}

.left-item .timeline-dot {
    right: -22px;
}

.right-item .timeline-dot {
    left: -22px;
}

.green-dot {
    border-color: var(--bolivia-green);
    color: var(--bolivia-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.gold-dot {
    background: var(--gold-primary);
    color: #000;
}

.cross-dot {
    border-color: var(--wilstermann-red);
    color: var(--wilstermann-red);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-50px);
    border-color: var(--border-gold);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.timeline-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.blue-tag { background: rgba(14, 165, 233, 0.15); color: var(--bolivar-blue); }
.red-tag { background: rgba(239, 68, 68, 0.15); color: var(--wilstermann-red); }
.green-tag { background: rgba(16, 185, 129, 0.15); color: var(--bolivia-green); }
.gold-tag { background: rgba(226, 184, 87, 0.15); color: var(--gold-primary); }
.orange-tag { background: rgba(245, 158, 11, 0.15); color: #f97316; }
.lightblue-tag { background: rgba(6, 182, 212, 0.15); color: var(--shalom-cyan); }
.dark-tag { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Clubs Section */
.clubs-section {
    padding: 6rem 0;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.club-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.club-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.club-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.realcbba-header { border-top: 4px solid var(--gold-primary); }
.cooperativa-header { border-top: 4px solid var(--gold-primary); }
.bolivar-header { border-top: 4px solid var(--bolivar-blue); }
.wilstermann-header { border-top: 4px solid var(--wilstermann-red); }
.universitario-header { border-top: 4px solid var(--gold-primary); }
.royalpari-header { border-top: 4px solid #f97316; }
.shalom-header { border-top: 4px solid var(--shalom-cyan); }
.bolivia-header { border-top: 4px solid var(--bolivia-green); }

.club-icon {
    font-size: 2rem;
    color: var(--text-secondary);
}

.club-years {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.club-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.club-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.club-city {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.club-role-badge {
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.gold-role {
    background: rgba(226, 184, 87, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

.green-role {
    background: rgba(16, 185, 129, 0.15);
    color: var(--bolivia-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: #090d16;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #000;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.2) 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: #fff;
}

.overlay-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.gallery-card-info {
    padding: 1.25rem;
}

.gallery-card-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3010;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3010;
    transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--gold-primary);
    color: #000;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    text-align: center;
    margin-top: 1.25rem;
}

.lightbox-caption h3 {
    font-size: 1.4rem;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
}

.lightbox-caption p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lightbox-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Virtual Candle Section */
.candle-section {
    position: relative;
    padding: 7rem 0;
    background: radial-gradient(circle at 50% 50%, #171d2d 0%, #080b12 80%);
    overflow: hidden;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.candle-interactive-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 3rem 2rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Candle Animation */
.candle-container {
    position: relative;
    width: 80px;
    height: 200px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.candle-halo {
    position: absolute;
    top: 5px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.15) 40%, transparent 70%);
    animation: pulseHalo 3s ease-in-out infinite alternate;
}

.candle-flame-wrapper {
    position: relative;
    width: 24px;
    height: 45px;
    z-index: 5;
    margin-bottom: 2px;
}

.candle-flame {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 25%, #f59e0b 60%, #ea580c 100%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    box-shadow: 0 0 20px #f59e0b, 0 0 40px #fbbf24;
    animation: flickerFlame 1.5s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

.candle-wick {
    width: 4px;
    height: 14px;
    background: #374151;
    border-radius: 2px;
    z-index: 4;
}

.candle-body {
    width: 65px;
    height: 130px;
    background: linear-gradient(90deg, #d1d5db 0%, #ffffff 40%, #f3f4f6 70%, #9ca3af 100%);
    border-radius: 8px 8px 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.25rem;
}

.candle-emblem {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold-dark);
    opacity: 0.6;
    letter-spacing: 2px;
}

@keyframes flickerFlame {
    0% { transform: scale(1) rotate(-1deg); }
    20% { transform: scale(1.05, 0.95) rotate(1deg); }
    40% { transform: scale(0.95, 1.05) rotate(-2deg); }
    60% { transform: scale(1.02, 0.98) rotate(1deg); }
    80% { transform: scale(0.98, 1.02) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes pulseHalo {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

.candle-counter-box {
    margin-bottom: 2rem;
}

.counter-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--gold-primary);
    line-height: 1;
}

.counter-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.candle-feedback {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--bolivia-green);
    min-height: 24px;
}

/* Tributes Section */
.tributes-section {
    padding: 6rem 0;
}

.tributes-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
}

.tribute-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
}

.tribute-form-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-primary);
}

.tribute-form-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(226, 184, 87, 0.2);
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.feed-header h3 {
    font-size: 1.4rem;
}

.badge-count {
    background: rgba(226, 184, 87, 0.15);
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.tributes-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tribute-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.tribute-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tribute-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(226, 184, 87, 0.15);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.tribute-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tribute-card-body p {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.6;
}

.tribute-card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.like-tribute-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.like-tribute-btn:hover, .like-tribute-btn.liked {
    color: #ef4444;
}

.like-tribute-btn.liked i {
    font-weight: 900;
}

/* Footer */
.site-footer {
    background: #060911;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-buttons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-buttons button:hover {
    background: var(--gold-primary);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.final-tribute-phrase {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-dates, .hero-cta-group {
        justify-content: center;
    }

    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-quote {
        text-align: left;
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .sticky-bio-nav {
        display: none;
    }

    .tributes-layout {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
    }

    .timeline-item.left-item, .timeline-item.right-item {
        left: 0;
    }

    .left-item .timeline-dot, .right-item .timeline-dot {
        left: 0;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}
