:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --neon-red: #ff004c;
    --neon-fucsia: #d500f9;
    --neon-yellow: #ffd600;
    --neon-green: #00ff00;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    /* Modern, sleek */
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

/* Sticky Header */
.top-bar {
    background: linear-gradient(90deg, var(--neon-red), var(--neon-fucsia));
    color: #fff;
    text-align: center;
    padding: 10px 40px 10px 10px;
    /* Right padding for close button */
    font-weight: bold;
    font-size: 0.9rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 0, 76, 0.5);
    animation: glow-bar 2s infinite alternate;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-alert-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    line-height: 1;
}

@keyframes glow-bar {
    from {
        box-shadow: 0 0 5px var(--neon-red);
    }

    to {
        box-shadow: 0 0 15px var(--neon-fucsia);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 80px;
    /* Adjusted for alert bar */
    left: 20px;
    z-index: 999;
    transition: top 0.3s ease;
    /* Smooth transition if we animate it later */
}

.menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    text-shadow: 0 0 10px var(--neon-yellow);
    display: none;
    /* Hidden by default (desktop logic below) */
}

/* Mobile Menu Container - Default hidden state handled by specific styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--neon-green);
    padding-top: 80px;
    transition: 0.4s ease;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.2rem;
    margin: 15px 0;
    text-transform: uppercase;
}

.mobile-menu a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* User Floating Bubble */
.user-float-bubble {
    position: fixed;
    top: 20px;
    /* Default (will be overridden by JS if alert exists) */
    right: 20px;
    z-index: 1001;
    /* Above navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.user-float-bubble img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-fucsia);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.5);
    transition: transform 0.3s;
    background: #000;
}

.user-float-bubble img:hover {
    transform: scale(1.1);
}

.bubble-close {
    background: var(--neon-red);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
    text-decoration: none;
    box-shadow: 0 0 5px var(--neon-red);
    cursor: pointer;
}

.bubble-close:hover {
    background: #fff;
    color: var(--neon-red);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Logic */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    /* Show hamburger on mobile */
    /* Desktop nav links would be hidden here if they existed separately */
}

@media (min-width: 769px) {
    /* Desktop specific styles could go here.
       For now, we just hide the mobile specific button above (default logic).
       If we wanted a horizontal menu here, we'd add it.
       Assuming current structure uses .mobile-menu for links,
       we might want to show them horizontally?
       The prompt specifically asked to hide the hamburger on desktop.
    */
}

/* Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: -webkit-linear-gradient(45deg, var(--neon-red), var(--neon-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 0, 76, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 1) 0%, rgba(0, 0, 0, 1) 100%);
    position: relative;
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 0, 76, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #ccc;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--neon-red);
    transition: 0.3s;
}

.btn-cta:hover {
    background: var(--neon-red);
    color: #fff;
    box-shadow: 0 0 30px var(--neon-red);
    transform: scale(1.05);
}

/* Nosotros / Legacy */
.about {
    padding: 100px 0;
    position: relative;
    background: url('../img/legacy_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax */
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .about {
        background-attachment: scroll;
        /* Mobile Fix */
    }
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Overlay to ensure text readability */
    z-index: 1;
}

.about>.container {
    position: relative;
    z-index: 2;
}

.legacy-card {
    background: rgba(20, 20, 20, 0.6);
    /* Slightly more opaque for contrast */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    backdrop-filter: blur(5px);
}

/* League Table */
.league-calendar {
    padding: 100px 0;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.date-card {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.date-card:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.3);
}

.date-card.completed {
    border-color: var(--neon-green);
    background: linear-gradient(180deg, rgba(0, 255, 0, 0.05) 0%, #111 100%);
}

.date-card.next-date {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 0, 76, 0.2);
    transform: scale(1.02);
}

.date-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-fucsia);
    display: block;
}

.date-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Status Badges & Buttons */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.status-completed {
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.status-next {
    color: var(--neon-red);
    background: rgba(255, 0, 76, 0.1);
    border: 1px solid var(--neon-red);
}

.btn-card {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-results {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.btn-results:hover {
    background: var(--neon-green);
    color: #000;
}

.btn-register {
    background: var(--neon-red);
    border: 1px solid var(--neon-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 76, 0.4);
}

.btn-register:hover {
    background: transparent;
    color: var(--neon-red);
}

/* Ranking Table */
.ranking-section {
    padding: 100px 0;
    background: #050505;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    min-width: 300px;
    /* Ensure it doesn't get too small */
}

.ranking-table th,
.ranking-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ranking-table th {
    background: rgba(255, 0, 76, 0.1);
    color: var(--neon-red);
    text-transform: uppercase;
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-1 {
    color: var(--neon-yellow);
    font-weight: bold;
}

.rank-2 {
    color: #ccc;
}

.rank-3 {
    color: #cd7f32;
}

/* Staff */
/* Staff */
.staff-section {
    padding: 100px 0;
    position: relative;
    background: url('../img/art_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax effect for desktop */
    border-top: 1px solid var(--neon-fucsia);
    border-bottom: 1px solid var(--neon-fucsia);
}

@media (max-width: 768px) {
    .staff-section {
        background-attachment: scroll;
        /* Fix for mobile browsers */
        background-position: center top;
    }
}

.staff-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark overlay */
    z-index: 1;
}

.staff-section>.container {
    position: relative;
    z-index: 2;
    /* Content above overlay */
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.staff-card {
    text-align: center;
}

.staff-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #333;
    margin: 0 auto 15px;
    border: 2px solid var(--neon-green);
    object-fit: cover;
}

.staff-name {
    color: var(--neon-green);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Club House Section */
.clubhouse-section {
    padding: 100px 0;
    background: url('../img/clubhouse_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.clubhouse-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark overlay for readability */
    z-index: 1;
}

.clubhouse-section>.container {
    position: relative;
    z-index: 2;
}

.clubhouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.clubhouse-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clubhouse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(213, 0, 249, 0.1);
}

.clubhouse-card.highlight {
    border-color: var(--neon-fucsia);
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Mobile Fix for Clubhouse Background */
@media (max-width: 768px) {
    .clubhouse-section {
        background-attachment: scroll;
        background-position: center top;
        padding: 60px 0;
    }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-icon.lock {
    color: var(--neon-red);
    text-shadow: 0 0 15px var(--neon-red);
}

.clubhouse-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.amenities span {
    font-size: 0.85rem;
    color: #eee;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.amenities span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--neon-fucsia);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-fucsia);
    flex-shrink: 0;
}

.amenities span:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-fucsia);
    transform: translateY(-2px);
}

.protected-content p {
    margin: 10px 0;
}

.btn-maps {
    background: var(--neon-blue, #007bff);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    border: none;
}

.btn-maps:hover {
    background: #0056b3;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
}

/* Player Zone Styles */
.player-session-box {
    background: #111;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.player-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.btn-player-zone {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-player-zone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-player-zone.highlight-yellow {
    color: var(--neon-yellow);
    border-color: rgba(255, 214, 0, 0.3);
}

.btn-player-zone.highlight-yellow:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.4);
}

.btn-logout {
    color: #ff4a4a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
    padding: 10px 15px;
}

.btn-logout:hover {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Player Statistics & Achievements */
.player-stats-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-chart {
    position: relative;
    width: 110px;
    height: 110px;
}

.donut-ring {
    stroke: rgba(255, 255, 255, 0.1);
}

.donut-segment {
    transition: stroke-dasharray 0.5s ease-in-out;
}

.donut-text {
    fill: #fff;
    font-size: 7px;
    font-weight: bold;
    font-family: var(--font-heading);
}

.stat-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--neon-green);
}

/* Player Requirement Section */
.player-requirement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.requirement-label {
    font-size: 0.7rem;
    color: var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    opacity: 0.9;
}

.requirement-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.requirement-star {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    transition: 0.3s;
    cursor: help;
}

.requirement-star:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.requirement-unmet {
    opacity: 0.6;
    cursor: help;
    transition: 0.3s;
}

.requirement-unmet:hover {
    opacity: 0.8;
}

/* Desktop Enhancements */
@media (min-width: 769px) {

    .requirement-star svg,
    .requirement-unmet svg {
        width: 45px;
        height: 45px;
    }

    .stat-details {
        gap: 20px;
    }
}


@media (max-width: 500px) {
    .player-stats-summary {
        flex-direction: column;
        gap: 20px;
    }

    .player-requirement {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 15px;
        width: 100%;
    }

    .requirement-star svg,
    .requirement-unmet svg {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .player-session-box {
        padding: 20px 15px;
        width: 100%;
        border-radius: 0;
        /* Full screen width on mobile */
        border-left: none;
        border-right: none;
    }

    .player-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-player-zone {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .btn-logout {
        width: 100%;
        text-align: center;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.phone-link {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--neon-fucsia);
}

.lock-overlay {
    margin-top: 25px;
}

/* Footer (Existing + Padding) */

/* Music Control Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #111;
    border: 2px solid var(--neon-fucsia);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.4);
    transition: 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(213, 0, 249, 0.7);
}

.music-icon {
    font-size: 1.5rem;
    position: absolute;
}

.music-bars {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.music-bars span {
    width: 3px;
    background: var(--neon-green);
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.music-bars span:nth-child(2) {
    animation-duration: 0.7s;
}

.music-bars span:nth-child(3) {
    animation-duration: 0.4s;
}

.music-bars span:nth-child(4) {
    animation-duration: 0.6s;
}

.music-btn.playing .music-bars {
    display: flex;
}

.music-btn.playing .music-icon {
    display: none;
}

@keyframes bounce {
    from {
        height: 4px;
    }

    to {
        height: 20px;
    }
}

@media (max-width: 768px) {
    .music-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .hero-logo {
        margin-top: 40px;
    }
}

.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #666;
}