/* ==========================================================================
   STYLE SYSTEM: INBA 124th Anniversary Landing Page
   Aesthetics: Neoclassical Academic / Modern Luxury Dark / Gold & Crimson Accents
   ========================================================================== */

:root {
    /* Color Palette */
    --navy-deep: #050b14;
    --navy-medium: #0c1322;
    --navy-light: #18253f;
    --gold: #d4af37;
    --gold-light: #f5dc83;
    --gold-dark: #aa8c2c;
    --red: #cf2e2e;
    --red-light: #f24747;
    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(12, 19, 34, 0.7);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-border-hover: rgba(212, 175, 55, 0.4);
    
    /* Layout & Spacing */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 25px rgba(214, 175, 55, 0.15);
    --radius-lg: 16px;
    --radius-md: 8px;
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--navy-deep);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Atmosphere Grid & Glows */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--navy-light) 0.5px, transparent 0.5px), 
        radial-gradient(var(--navy-light) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.15;
    z-index: -10;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -9;
    pointer-events: none;
}

.glow-blue {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--navy-light) 0%, transparent 70%);
}

.glow-gold {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 75%);
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. BUTTONS & UI COMPONENTS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-deep);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 8px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Header Styling */
.section-header {
    margin-bottom: 60px;
}

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

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3. SITE HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background-color: var(--navy-deep);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.25));
}

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

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-light);
    background-color: rgba(212, 175, 55, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--navy-medium);
    border-left: 1px solid var(--glass-border);
    z-index: 101;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-title {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 700;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
}

.drawer-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.drawer-footer {
    margin-top: auto;
    text-align: center;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    flex-grow: 1;
}

.hero-content {
    max-width: 680px;
}

.anniversary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(207, 46, 46, 0.15);
    border: 1px solid rgba(207, 46, 46, 0.4);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--red-light);
    margin-bottom: 24px;
}

.badge-accent {
    color: var(--gold);
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.motto-banner {
    display: inline-flex;
    flex-direction: column;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-bottom: 40px;
}

.motto-latin {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.2;
}

.motto-translation {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* Hero Emblem Card */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.emblem-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--navy-light) 0%, rgba(5,11,20,0) 80%);
    border-radius: 50%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft), var(--shadow-gold);
    border: 1px solid var(--glass-border);
}

.emblem-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    animation: floating 6s ease-in-out infinite;
    z-index: 2;
}

.emblem-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}

/* Torch Flame Animated Effect */
.torch-flame-container {
    position: absolute;
    top: 8%;
    left: 49%;
    transform: translateX(-50%);
    width: 36px;
    height: 50px;
    z-index: 4;
    pointer-events: none;
}

.flame-core {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 28px;
    background: linear-gradient(0deg, var(--red) 0%, var(--gold) 50%, var(--gold-light) 100%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    filter: blur(1px);
    animation: flame-flicker 1.5s infinite alternate;
}

.flame-glow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 38px;
    background-color: var(--gold-light);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.55;
    animation: pulse-glow 2s infinite alternate;
}

/* Stats Bar */
.hero-stats-bar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
    width: 100%;
    margin-top: 60px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.08);
}

.scroll-down-arrow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 5;
}

/* ==========================================================================
   5. TIMELINE SECTION
   ========================================================================== */

.timeline-section {
    padding: 100px 0;
    background-color: var(--navy-deep);
    position: relative;
}

.timeline-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.filter-btn {
    background-color: var(--navy-light);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    font-weight: 600;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(212, 175, 55, 0.1) 0%, 
        var(--gold) 15%, 
        var(--gold) 85%, 
        rgba(212, 175, 55, 0.1) 100%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 35px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--navy-deep);
    border: 3px solid var(--gold);
    z-index: 10;
    box-shadow: 0 0 10px var(--gold);
    transition: var(--transition-fast);
}

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

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

.timeline-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-soft), var(--shadow-gold);
}

.card-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-top: 16px;
    background-color: rgba(212, 175, 55, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
}

.highlight-card {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, rgba(12,19,34,0.85) 0%, rgba(20,36,62,0.65) 100%);
    box-shadow: var(--shadow-soft), 0 0 20px rgba(212, 175, 55, 0.1);
}

.bg-gold {
    background-color: var(--gold) !important;
}

.text-dark {
    color: var(--navy-deep) !important;
}

/* ==========================================================================
   6. SYMBOLS SECTION
   ========================================================================== */

.symbols-section {
    padding: 100px 0;
    background-color: var(--navy-medium);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.symbol-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.symbol-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-soft), var(--shadow-gold);
}

.symbol-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.symbol-svg {
    width: 100%;
    height: 100%;
}

.symbol-title {
    font-size: 1.45rem;
    margin-bottom: 16px;
    color: var(--text-white);
}

.symbol-accent {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.symbol-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.symbol-elements-list {
    margin-top: 20px;
    text-align: left;
    list-style: none;
    font-size: 0.9rem;
}

.symbol-elements-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.symbol-elements-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ==========================================================================
   7. ANTHEM SECTION
   ========================================================================== */

.himno-section {
    padding: 100px 0;
    background-color: var(--navy-deep);
    position: relative;
}

.himno-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 60px;
}

.himno-info {
    max-width: 500px;
}

.himno-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 20px 0 35px;
    color: var(--text-muted);
}

/* Audio Player styling */
.anthem-player {
    background-color: var(--navy-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.player-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.track-details {
    flex-grow: 1;
}

.track-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

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

/* Visualizer Bars */
.player-visual-lines {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    width: 60px;
    padding-bottom: 4px;
}

.player-visual-lines .bar {
    width: 3px;
    height: 5px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: height 0.15s ease;
}

/* Visualizer Animation when Active */
.anthem-player.playing .player-visual-lines .bar {
    animation: equalizer-bounce 1s infinite alternate;
}
.anthem-player.playing .player-visual-lines .bar:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.8s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(3) { animation-delay: 0.25s; animation-duration: 1.2s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(4) { animation-delay: 0.05s; animation-duration: 0.9s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(5) { animation-delay: 0.3s; animation-duration: 1.1s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(6) { animation-delay: 0.15s; animation-duration: 0.7s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(7) { animation-delay: 0.4s; animation-duration: 1.3s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(8) { animation-delay: 0.2s; animation-duration: 0.85s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(9) { animation-delay: 0.35s; animation-duration: 1.05s; }
.anthem-player.playing .player-visual-lines .bar:nth-child(10) { animation-delay: 0.12s; animation-duration: 0.95s; }

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(212,175,55,0.3);
    transition: var(--transition-fast);
}

.player-btn:hover {
    transform: scale(1.05);
    background-color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(212,175,55,0.5);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

.time-current, .time-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 30px;
}

/* Lyrics sheet styling */
.himno-lyrics-sheet {
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    height: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.lyrics-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, var(--navy-medium) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.lyrics-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--navy-medium) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.lyrics-container {
    padding: 60px 40px;
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.lyrics-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.lyrics-stanza {
    margin-bottom: 35px;
    transition: opacity 0.3s ease;
}

.stanza-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.lyrics-line {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.lyrics-line.active {
    color: var(--text-white);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

/* ==========================================================================
   8. ACTIVITIES SECTION
   ========================================================================== */

.activities-section {
    padding: 100px 0;
    background-color: var(--navy-medium);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.activity-card {
    display: flex;
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.activity-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(5px);
    box-shadow: var(--shadow-soft), var(--shadow-gold);
}

.card-date-badge {
    background-color: var(--navy-light);
    border-right: 1px solid var(--glass-border);
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-shrink: 0;
}

.card-date-badge .day {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.card-date-badge .month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

.activity-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.event-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-rsvp {
    align-self: flex-start;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-rsvp:hover {
    background-color: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.btn-rsvp.rsvp-success {
    background-color: rgba(46, 204, 113, 0.15) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
}

/* ==========================================================================
   9. GUESTBOOK SECTION (LIBRO DE FIRMAS)
   ========================================================================== */

.guestbook-section {
    padding: 100px 0;
    background-color: var(--navy-deep);
    position: relative;
}

.guestbook-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.guestbook-form-area {
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

.guestbook-desc {
    font-size: 0.95rem;
    margin: 16px 0 30px;
    color: var(--text-muted);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 10px rgba(212,175,55,0.15);
    background-color: var(--navy-medium);
}

.form-group select option {
    background-color: var(--navy-medium);
    color: var(--text-white);
}

.btn-submit-guestbook {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Messages area */
.guestbook-messages-area {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.messages-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.messages-list-header h3 {
    font-size: 1.5rem;
    color: var(--text-white);
}

.counter-badge {
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.messages-scroll-container {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 10px;
}

/* Custom Scrollbar for messages container */
.messages-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.messages-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.messages-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.2);
}

.message-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    animation: fade-in-up 0.5s ease forwards;
    transition: var(--transition-fast);
}

.message-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.msg-author {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
}

.msg-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-deep);
    background-color: var(--gold);
    padding: 3px 8px;
    border-radius: 4px;
}

.msg-tag.tag-estudiante {
    background-color: var(--gold-light);
}

.msg-tag.tag-docente {
    background-color: var(--red-light);
    color: var(--text-white);
}

.msg-tag.tag-apoderado {
    background-color: var(--navy-light);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.1);
}

.msg-content {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
}

.msg-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.msg-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   10. SITE FOOTER
   ========================================================================== */

.site-footer {
    background-color: #03070d;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    position: relative;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-info {
    max-width: 600px;
}

.footer-logo {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
    margin-bottom: 20px;
}

.footer-school-name {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.footer-school-subtitle {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-latin {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    font-size: 0.75rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* ==========================================================================
   11. ANIMATIONS KEYFRAMES
   ========================================================================== */

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes flame-flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); filter: blur(0.5px); }
    100% { transform: translateX(-50%) scale(1.15) rotate(2deg); filter: blur(1.5px); }
}

@keyframes pulse-glow {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.45; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 0.65; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

@keyframes animate-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes equalizer-bounce {
    0% { height: 5px; }
    100% { height: 35px; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.4rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 21px;
    }
    
    .symbols-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .himno-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .guestbook-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .guestbook-form-area {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .btn-header-action {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .motto-banner {
        border-left: none;
        border-top: 2px solid var(--gold);
        border-bottom: 2px solid var(--gold);
        padding: 12px 0;
        width: 100%;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 30px;
    }
    
    .emblem-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .symbols-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-card {
        flex-direction: column;
    }
    
    .card-date-badge {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: row;
        gap: 12px;
        padding: 14px;
    }
    
    .card-date-badge .day {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
