/* ==========================================================================
   DESIGN SYSTEM - COMISIÓN DE BMX DE PUERTO RICO
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #06070a;      /* Darkest black */
    --bg-secondary: #0d0f15;    /* Very dark gray */
    --bg-tertiary: #131722;     /* Medium dark gray for cards */
    --bg-card-hover: #1b2030;   /* Accentuated card hover state */
    
    --text-primary: #ffffff;
    --text-secondary: #a0a6b5;
    --text-muted: #626875;

    /* Racing Colors */
    --accent-blue: #00e5ff;     /* Electric Blue */
    --accent-blue-hover: #00b3cc;
    --accent-red: #ff004c;      /* Puerto Rico Red */
    --accent-red-hover: #cc003d;
    --accent-neon: #ccff00;     /* Neon Yellow/Green Highlight */
    --accent-neon-hover: #b3e600;
    
    /* System Colors */
    --border-color: #1e2436;
    --border-glow-blue: rgba(0, 229, 255, 0.25);
    --border-glow-red: rgba(255, 0, 76, 0.25);
    
    /* Typography */
    --font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --header-height-mobile: 70px;
    --container-width: 1200px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --glow-blue: 0 0 15px rgba(0, 229, 255, 0.4);
    --glow-red: 0 0 15px rgba(255, 0, 76, 0.4);
    --glow-neon: 0 0 20px rgba(204, 255, 0, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    color: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */

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

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.highlight-blue {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.highlight-red {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 0, 76, 0.2);
}

.highlight-pr {
    background: linear-gradient(90deg, var(--accent-blue) 0%, #ffffff 50%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 16px;
    font-style: italic;
}

.title-bar-accent {
    width: 80px;
    height: 4px;
    background-color: var(--accent-red);
    position: relative;
}

.title-bar-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 85px;
    width: 12px;
    height: 4px;
    background-color: var(--accent-blue);
}

.title-bar-accent.bg-blue {
    background-color: var(--accent-blue);
}

.title-bar-accent.bg-blue::after {
    background-color: var(--accent-red);
}

.section-intro-text {
    margin-top: 24px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
}

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

/* ==========================================================================
   SPEED LINES & RACING PATTERNS (BACKGROUNDS)
   ========================================================================== */

/* Subtle background speed line elements */
.speed-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.03;
    background-image: repeating-linear-gradient(-45deg, 
        transparent, 
        transparent 80px, 
        var(--text-primary) 80px, 
        var(--text-primary) 82px
    );
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
    font-style: italic;
    border: 2px solid transparent;
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 8px;
    transition: transform var(--transition-normal);
}

/* Primary Button (Electric Blue / Red accents) */
.btn-primary {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Secondary Button (Outlined/Sleek) */
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Neon Call to Action Button */
.btn-neon {
    background-color: var(--accent-neon);
    color: var(--bg-primary);
}

.btn-neon:hover {
    background-color: transparent;
    color: var(--accent-neon);
    border-color: var(--accent-neon);
    box-shadow: var(--glow-neon);
}

.btn-neon:hover .btn-icon {
    transform: translateX(4px);
}

/* Social Buttons */
.btn-social {
    padding: 12px 24px;
    font-size: 1.1rem;
    gap: 10px;
}

.social-btn-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.btn-facebook {
    background-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: transparent;
    border-color: #1877f2;
    color: #1877f2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
}

.btn-instagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.btn-instagram:hover::before {
    opacity: 0.9;
}

.btn-instagram > * {
    position: relative;
    z-index: 2;
}

.btn-instagram:hover {
    color: #e6683c;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.4);
    border: 2px solid #e6683c;
}

/* Button Sizing */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.2rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Pulse Animation for Primary CTA */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 229, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

.pulse-button {
    animation: pulse-glow 2s infinite;
}

.btn-neon.pulse-button {
    animation: pulse-glow-neon 2s infinite;
}

@keyframes pulse-glow-neon {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(204, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
    }
}

/* Disabled State */
.btn.disabled, button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    animation: none !important;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(6, 7, 10, 0.95);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

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

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid var(--accent-blue);
    transition: var(--transition-normal);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.logo-text-mobile {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

@media (min-width: 1025px) {
    .logo-text-mobile {
        display: none !important;
    }
}

.logo-area:hover .logo-img {
    transform: rotate(5deg) scale(1.05);
    border-color: var(--accent-red);
}

/* Menu Menu Links */
.nav-links-wrapper {
    height: 100%;
}

.nav-menu {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 0 16px;
    height: 100%;
    line-height: var(--header-height);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    position: relative;
}

.main-header.scrolled .nav-link {
    line-height: 70px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--accent-blue);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent-blue);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.social-icon:hover {
    color: var(--text-primary);
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.social-icon:nth-child(2):hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: var(--glow-red);
}

.svg-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 5;
    background-color: var(--bg-primary);
}

.hero-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.35) contrast(1.1);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(6, 7, 10, 0.95) 0%, 
        rgba(6, 7, 10, 0.7) 40%, 
        rgba(0, 0, 0, 0) 100%
    );
    z-index: -1;
}

.hero-container-content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-height);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.accent-line {
    width: 40px;
    height: 3px;
    background-color: var(--accent-red);
}

.tag-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 7.5rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-bottom: 24px;
    font-style: italic;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Diagonal Cutout Accent for Hero Footer */
.hero-bottom-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 10;
}

.hero-bottom-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.hero-bottom-divider .divider-fill {
    fill: var(--bg-primary);
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
        font-size: clamp(3.3rem, 9.5vw, 4.5rem);
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}


/* ==========================================================================
   ABOUT SECTION (SOBRE LA COMISIÓN)
   ========================================================================== */

.about-section {
    background-color: var(--bg-primary);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.lead-text {
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    border-left: 4px solid var(--accent-red);
    padding-left: 24px;
}

.about-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.info-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 76, 0.3);
    box-shadow: var(--shadow-card), 0 0 20px rgba(255, 0, 76, 0.1);
}

.info-card:hover::before {
    transform: scaleY(1);
}

.card-icon-wrapper {
    background-color: rgba(255, 0, 76, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--accent-red);
    border: 1px solid rgba(255, 0, 76, 0.15);
    transition: var(--transition-normal);
}

.info-card:hover .card-icon-wrapper {
    background-color: var(--accent-red);
    color: var(--bg-primary);
    transform: scale(1.05) rotate(-3deg);
}

.card-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.card-body-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-cards-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WHAT IS BMX RACING SECTION
   ========================================================================== */

.bmx-info-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.bmx-info-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.bmx-intro-container {
    display: flex;
    flex-direction: column-reverse; /* Mobile: text on top, image below */
    gap: 24px;
}

.bmx-intro-img-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    background-color: var(--bg-tertiary);
    padding: 6px; /* Framed box effect (recuadro) */
}

.bmx-intro-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

@media (min-width: 1025px) {
    .bmx-intro-container {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr; /* Desktop: image on left, text on right */
        gap: 48px;
        align-items: center;
    }
    
    .bmx-intro-img-wrapper {
        padding: 10px; /* Thicker frame on desktop */
    }
    
    .bmx-intro-img {
        height: 280px; /* Taller image on desktop */
        transition: transform var(--transition-slow);
    }
    
    .bmx-intro-container:hover .bmx-intro-img {
        transform: scale(1.02); /* Subtle hover scale */
    }
}

@media (max-width: 1024px) {
    .bmx-info-layout {
        gap: 24px;
    }
}

.bmx-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bmx-feature-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
    transition: var(--transition-normal);
    position: relative;
}

.feature-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 229, 255, 0.1);
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    font-style: italic;
    transition: var(--transition-normal);
}

.feature-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 20px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bmx-feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-card), 0 0 20px rgba(0, 229, 255, 0.08);
}

.bmx-feature-item:hover .feature-num {
    color: var(--accent-blue);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .bmx-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bmx-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FEDERARSE BANNER SECTION
   ========================================================================== */

.federarse-banner {
    position: relative;
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
    z-index: 5;
}

.federarse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.federarse-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.federarse-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.federarse-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.federarse-actions {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.federarse-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--bg-tertiary);
    border: 1.5px dashed var(--border-color);
    padding: 18px 24px;
    border-radius: 4px;
    max-width: 650px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.note-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-neon);
    flex-shrink: 0;
    margin-top: 2px;
}

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

/* ==========================================================================
   CALENDAR SECTION
   ========================================================================== */

.calendar-section {
    background-color: var(--bg-secondary);
}

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

.event-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-blue);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-card), 0 0 20px rgba(0, 229, 255, 0.08);
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    border-radius: 3px;
}

.badge-neon {
    background-color: rgba(204, 255, 0, 0.1);
    color: var(--accent-neon);
    border: 1px solid rgba(204, 255, 0, 0.2);
}

.event-body {
    padding: 35px 30px 25px;
    flex-grow: 1;
}

.event-meta-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.event-details-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-details-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    flex-shrink: 0;
}

.event-footer {
    padding: 0 30px 35px;
}

.btn-card-action {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.event-card:hover .btn-card-action:not(:disabled) {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
    border-color: var(--accent-blue);
}

.calendar-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    padding: 16px 24px;
    border-radius: 4px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-footer-note .note-icon {
    fill: var(--accent-blue);
}

@media (max-width: 992px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TRACKS SECTION (PISTAS Y SEDES)
   ========================================================================== */

.tracks-section {
    background-color: var(--bg-primary);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .tracks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tracks-grid {
        grid-template-columns: 1fr;
    }
}

.track-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.track-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 76, 0.3);
    box-shadow: var(--shadow-card);
}

.track-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.track-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.track-card:hover .track-img {
    transform: scale(1.1) rotate(1deg);
}

.track-status-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-primary);
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    border-radius: 3px;
    border-left: 3px solid var(--accent-red);
}

.track-body {
    padding: 24px;
    flex-grow: 1;
}

.track-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.track-location {
    font-size: 0.85rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-weight: 600;
}

.loc-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.track-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.track-footer {
    padding: 0 24px 24px;
}

.track-card:hover .btn-card-action:not(:disabled) {
    background-color: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* Track Card Placeholder (For upcoming tracks) */
.track-card-placeholder {
    background-color: transparent;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.placeholder-track-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.placeholder-icon-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.track-card-placeholder:hover {
    border-color: var(--accent-blue);
    background-color: var(--bg-tertiary);
}

.track-card-placeholder:hover .placeholder-icon-ring {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.08) rotate(90deg);
}

.p-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================================================
   COMMUNITY GALLERY SECTION
   ========================================================================== */

.community-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* Bento Grid Spans */
.gallery-item.item-wide {
    grid-column: span 2;
}

.gallery-item.item-tall {
    grid-row: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(6, 7, 10, 0.9) 0%, rgba(6, 7, 10, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
    transition: var(--transition-normal);
}

.gallery-zoom-icon {
    align-self: flex-end;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition-normal);
}

.zoom-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gallery-info {
    transform: translateY(15px);
    transition: var(--transition-normal);
}

.gallery-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    color: white;
}

/* Hover States */
.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

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

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
    opacity: 1;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .gallery-item.item-wide {
        grid-column: span 1;
    }
    .gallery-item.item-tall {
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 7, 10, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    color: white;
    margin-top: 20px;
    text-align: center;
    letter-spacing: 0.02em;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-secondary);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-red);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
    box-shadow: var(--glow-blue);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ==========================================================================
   NEWS SECTION (NOTICIAS Y ACTUALIZACIONES)
   ========================================================================== */

.news-section {
    background-color: var(--bg-primary);
}

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

.news-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 76, 0.3);
    box-shadow: var(--shadow-card);
}

.news-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-red);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    padding: 3px 10px;
    border-radius: 3px;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.news-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    color: var(--accent-blue);
    align-self: flex-start;
}

.link-arrow {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-normal);
}

.news-card:hover .link-arrow {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SOCIAL MEDIA BANNER SECTION
   ========================================================================== */

.social-media-banner {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
}

.social-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.social-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.social-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 20px;
}

.social-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .social-title {
        font-size: 2.5rem;
    }
    .social-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 24px;
    }
    .social-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    background-color: var(--bg-primary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: 50px;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Info Panel */
.contact-info-panel {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 16px;
    color: white;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.meta-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.meta-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.meta-value {
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-all;
}

a.meta-value:hover {
    color: var(--accent-blue);
}

/* Puerto Rico Flags Graphic Accent */
.brand-strip-pr {
    display: flex;
    height: 6px;
    width: 100%;
    margin-top: 40px;
    border-radius: 2px;
    overflow: hidden;
}

.strip-red { background-color: var(--accent-red); flex: 2; }
.strip-white { background-color: white; flex: 1; }
.strip-blue { background-color: var(--accent-blue); flex: 1; }

/* Contact Form Panel */
.contact-form-panel {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
}

.form-row {
    margin-bottom: 24px;
}

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

@media (max-width: 576px) {
    .form-row.two-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-control {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 4px;
    color: white;
    transition: var(--transition-fast);
    width: 100%;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

/* Custom styling for Select Option */
.select-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23626875' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 40px;
}

.select-control option {
    background-color: var(--bg-tertiary);
    color: white;
}

.text-control {
    resize: none;
}

/* Validation styling */
.form-group.has-error .form-control {
    border-color: var(--accent-red);
}

.error-msg {
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .error-msg {
    display: block;
}

/* Success / Error Alerts */
.form-alert-box {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-alert-box.hide {
    display: none;
}

.form-alert-box.success {
    background-color: rgba(204, 255, 0, 0.08);
    border: 1.5px solid var(--accent-neon);
    color: var(--accent-neon);
}

.form-alert-box.error {
    background-color: rgba(255, 0, 76, 0.08);
    border: 1.5px solid var(--accent-red);
    color: var(--accent-red);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer-top {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.logo-img-footer {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid var(--accent-blue);
}

.logo-text-footer {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    color: white;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.6;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: italic;
    color: white;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-menu-links a:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

.footer-bottom {
    padding: 30px 24px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-disclaimer {
    background-color: rgba(6, 7, 10, 0.5);
    border: 1.5px dashed rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 24px;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE NAVIGATION SYSTEM
   ========================================================================== */

@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-links-wrapper {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(6, 7, 10, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 999;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        padding: 40px 24px;
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .main-header.scrolled .nav-links-wrapper {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-links-wrapper.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        height: auto;
        gap: 20px;
        align-items: flex-start;
    }
    
    .nav-link {
        padding: 10px 0;
        width: 100%;
        height: auto;
        line-height: 1;
        font-size: 1.5rem;
    }
    
    .main-header.scrolled .nav-link {
        line-height: 1;
    }
    
    .nav-link::after {
        left: 0;
        right: auto;
        width: 40px;
        height: 3px;
        bottom: -5px;
    }
    
    /* Close icon transformation on toggle active */
    .mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    
    .header-actions {
        display: none; /* Hidden on mobile header, we can append to mobile navigation menu if needed */
    }
}

/* ==========================================================================
   ADMINISTRATION INTERFACE (ADMIN PANEL / EDIT MODE)
   ========================================================================== */

/* Shift body down if admin banner is active */
body.admin-mode-active {
    padding-top: 50px; /* Space for the floating banner */
}

/* Floating Admin Banner */
.admin-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #0b0c10;
    border-bottom: 2px solid var(--accent-neon);
    color: #fff;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-banner.hide {
    display: none !important;
}

.admin-banner-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-banner-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-neon);
    text-transform: uppercase;
}

.admin-banner-actions {
    display: flex;
    gap: 12px;
}

/* Generic Reusable Admin Modals */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.admin-modal.hide {
    display: none !important;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-modal-container {
    position: relative;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-card), 0 10px 40px rgba(0, 0, 0, 0.7);
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 2;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-sm {
    max-width: 450px;
}

.modal-md {
    max-width: 650px;
}

.modal-lg {
    max-width: 950px;
    height: 80vh;
}

.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.admin-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
}

.admin-modal-close {
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.admin-modal-close:hover {
    color: var(--accent-red);
}

.admin-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Dashboard Inner Layout */
.dashboard-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 0;
    height: 100%;
}

.dashboard-tabs {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 6px;
}

.tab-btn {
    text-align: left;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--accent-blue);
    background-color: rgba(0, 229, 255, 0.03);
    border-left-color: var(--accent-blue);
}

.dashboard-tab-content {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* List of Items in Admin Panel */
.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-item-row {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.admin-item-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-tertiary);
}

.admin-item-row .item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-item-row .item-info strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.admin-item-row .item-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-item-row .item-actions {
    display: flex;
    gap: 8px;
}

/* Form Styles inside Admin */
.form-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.config-actions-box {
    margin-top: 20px;
}

/* Inline Edit Buttons overlay */
.event-card, .track-card, .gallery-item, .news-card {
    position: relative;
}

.quick-edit-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: none; /* Only visible in admin mode */
}

body.admin-mode-active .quick-edit-controls {
    display: block;
}

.btn-quick-edit {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1.5px solid var(--accent-neon);
    color: var(--accent-neon);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-quick-edit:hover {
    background-color: var(--accent-neon);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--accent-neon);
}

.admin-link {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    text-decoration: underline;
}

.admin-link:hover {
    color: var(--accent-neon);
}

.text-red {
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

.text-red:hover {
    background-color: rgba(255, 0, 76, 0.1) !important;
}

/* News Detail Reading Modal styles */
.news-detail-container {
    max-height: 90vh;
}

.border-none {
    border: none !important;
}

@media (max-width: 768px) {
    .dashboard-body {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-btn {
        padding: 10px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--accent-blue);
    }
    
    .dashboard-tab-content {
        padding: 20px 16px;
    }
    
    .admin-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .admin-item-row .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-banner-title {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   TOAST NOTIFICATIONS (FIRESTORE SYNC STATUS)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    color: white;
    padding: 14px 20px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    max-width: 380px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left-color: var(--accent-neon);
}

.toast-error {
    border-left-color: var(--accent-red);
}

.toast-info {
    border-left-color: var(--accent-blue);
}

.toast-icon {
    font-size: 1.2rem;
}

/* ==========================================================================
   NATIVE AI CHATBOT WIDGET STYLES
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9990;
}

.chatbot-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--accent-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    transition: all var(--transition-normal);
    position: relative;
}

.chatbot-trigger-btn:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 0 30px var(--accent-blue);
}

.chatbot-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-neon);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

.chatbot-icon-svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 540px;
    max-height: 80vh;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chatbot-window.hide {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    display: none;
}

.chatbot-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-avatar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar-ring {
    position: relative;
    width: 40px;
    height: 40px;
}

.chatbot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--accent-blue);
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--accent-neon);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.chatbot-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

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

.chatbot-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-close-btn:hover {
    color: var(--accent-red);
}

.chatbot-chips-bar {
    padding: 8px 10px;
    background-color: rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
}

.chat-chip {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: normal;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}


.chat-chip:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background-color: rgba(0, 229, 255, 0.08);
}

.chatbot-messages-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.03) 0%, transparent 80%);
}

.chat-bubble {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-bubble {
    align-self: flex-start;
}

.user-bubble {
    align-self: flex-end;
}

.chat-bubble .bubble-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
}

.bot-bubble .bubble-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top-left-radius: 2px;
    color: var(--text-primary);
}

.bot-bubble .bubble-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
}

.user-bubble .bubble-content {
    background-color: var(--accent-blue);
    color: #000;
    font-weight: 500;
    border-top-right-radius: 2px;
}

.bubble-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0 4px;
}

.user-bubble .bubble-time {
    align-self: flex-end;
}

.chatbot-typing-bar {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chatbot-input-area {
    padding: 12px 14px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chatbot-input-field {
    flex-grow: 1;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 16px !important; /* 16px previene el auto-zoom exagerado de Safari en iOS / iPhone */
    outline: none;
    transition: var(--transition-fast);
}

.chatbot-input-field:focus {
    border-color: var(--accent-blue);
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    background-color: var(--accent-neon);
}

.send-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 2px;
}

body.chatbot-open {
    overflow: hidden !important;
}

@media (max-width: 576px) {
    .chatbot-window {
        position: fixed;
        top: 20px;
        bottom: 20px;
        left: 14px;
        right: 14px;
        width: auto;
        height: auto;
        max-height: calc(100dvh - 40px);
        z-index: 10000;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    }

    .chatbot-header {
        padding: 10px 14px;
    }

    .chatbot-messages-body {
        padding: 12px;
        gap: 10px;
    }

    .chat-bubble .bubble-content {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .chat-chip {
        padding: 5px 6px;
        font-size: 0.74rem;
        min-height: 30px;
    }
}





