.tier-grid .tier-column.tier-1 { border-top-color: #f0b857 !important; }
.tier-grid .tier-column.tier-2 { border-top-color: #a9b1b9 !important; }
.tier-grid .tier-column.tier-3 { border-top-color: #d59161 !important; }
.tier-grid .tier-column[data-tier-id="tier1"] { border-top-color: #f0b857 !important; }
.tier-grid .tier-column[data-tier-id="tier2"] { border-top-color: #a9b1b9 !important; }
.tier-grid .tier-column[data-tier-id="tier3"] { border-top-color: #d59161 !important; }
/* Interactive before/after slider for bot card */
.bot-compare-slider { position: relative; margin-top: 1rem; height: 260px; border: 1px solid var(--border-primary); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-secondary); }
.bot-compare-slider .pane { position: absolute; inset: 0; padding: 1rem 1.25rem; display: grid; grid-template-rows: auto 1fr; gap: .5rem; }
.bot-compare-slider .pane-left { z-index: 1; }
.bot-compare-slider .pane-right { z-index: 2; }
.bot-compare-slider .pane-left { background: linear-gradient(180deg, rgba(248,113,113,.08), transparent 60%); }
.bot-compare-slider .pane-right { background: linear-gradient(180deg, rgba(59,130,246,.12), transparent 60%); }
/* Complementary clips to avoid text overlap: at 30%, right (Nuestro) shows left 30%, left (Otros) shows from 30% to 100% */
.bot-compare-slider .pane-right { clip-path: inset(0 calc(70%) 0 0); }
.bot-compare-slider .pane-left { clip-path: inset(0 0 0 30%); }
.bot-compare-slider .slider-handle { position: absolute; top: 0; bottom: 0; left: 30%; width: 3px; background: linear-gradient(180deg, rgba(88,166,255,.7), rgba(88,166,255,.2)); box-shadow: 0 0 24px rgba(88,166,255,.55); border:none; cursor: ew-resize; z-index: 3; }
.bot-compare-slider .slider-handle::after { content:""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 26px; height: 26px; border-radius: 999px; background: radial-gradient(circle, #0b1f3a 0, #0b1f3a 55%, #2a6adf 70%, transparent 71%); box-shadow: 0 10px 30px rgba(31,111,235,.5); }
.bot-compare-slider .bot-code { position: absolute; inset: 0; opacity: .14; filter: blur(2px); pointer-events: none; }
.bot-compare-slider .bot-code pre { position: absolute; inset: 0 0 auto 0; height: 180%; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 11.5px; line-height: 1.45; white-space: pre; padding: 1rem; mix-blend-mode: screen; color: #8fd3ff; animation: codeDrift 24s linear infinite; }
@media (max-width: 700px){ .bot-compare-slider { height: 320px; } }
/* 
    TierList Hispana — Rebuild
    Author: Vayju :V
    Date: 2025-09-05
*/

/* ------------------- */
/* VARIABLES & THEMES  */
/* ------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    /* Sentinel var so JS can detect if stylesheet applied */
    --tlh-ready: 1;
  --font-primary: 'Inter', sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
    --radius-pill: 999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);

  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Default to dark theme variables - ULTRA DEEP COLORS (Menos azulado) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #0f0f0f;
    --bg-card: #121212;
    --bg-hover: #181818;
    --bg-elevated: #1a1a1a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --border-primary: #1f1f1f;
    --border-secondary: #2a2a2a;
    --border-hover: #3a3a3a;
    --accent-primary: #ffffff;
    --accent-secondary: #d4d4d4;
    --accent-hover: #f0f0f0;
    --glow: rgba(255, 255, 255, 0.08);
    --glow-strong: rgba(255, 255, 255, 0.15);
    --glow-subtle: rgba(255, 255, 255, 0.04);

    /* Tier colors */
    --tier-ht1: #ffd166;
    --tier-lt1: #fca311;
    --tier-ht2: #ef476f;
    --tier-lt2: #d62839;
    --tier-ht3: #06d6a0;
    --tier-lt3: #20b08f;
    --tier-ht4: #118ab2;
    --tier-lt4: #0f6fa5;
    --tier-ht5: #8338ec;
    --tier-lt5: #6d28d9;
    --unranked: #6b7280;
}

/* Light theme overrides - ULTRA CLEAN & MODERN */
body.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-elevated: #fcfcfc;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --border-primary: #e5e5e5;
    --border-secondary: #d4d4d4;
    --border-hover: #a3a3a3;
    --accent-primary: #0a0a0a;
    --accent-secondary: #404040;
    --accent-hover: #171717;
    --glow: rgba(0, 0, 0, 0.04);
    --glow-strong: rgba(0, 0, 0, 0.08);
    --glow-subtle: rgba(0, 0, 0, 0.02);

    /* Tier colors para light mode - más saturados */
    --tier-ht1: #ca8a04;
    --tier-lt1: #a16207;
    --tier-ht2: #dc2626;
    --tier-lt2: #b91c1c;
    --tier-ht3: #059669;
    --tier-lt3: #047857;
    --tier-ht4: #2563eb;
    --tier-lt4: #1d4ed8;
    --tier-ht5: #7c3aed;
    --tier-lt5: #6d28d9;
    --unranked: #6b7280;
}

    /* Make light theme cards ULTRA CLEAN & MINIMAL */
    body.theme-light .player-card,
    body.theme-light .tier-column,
    body.theme-light .feature-card {
        background: #ffffff;
        border: 1px solid var(--border-primary);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    body.theme-light .player-card:hover,
    body.theme-light .tier-column:hover,
    body.theme-light .feature-card:hover {
        background: #fafafa;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: var(--border-secondary);
    }
    
    body.theme-light .modal-content {
        background: #ffffff;
        border: 1px solid var(--border-primary);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
    
    body.theme-light .navbar {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid var(--border-primary);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    body.theme-light .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

/* Ensure visible before JS attaches */
html.no-js .reveal { opacity: 1 !important; transform: none !important; }
html.no-js #rankings-section, html.no-js #rankings-list-section { display: block; }
html.no-js #rankings-list-section { display: none; }

.dropdown { 
    position: relative;
}

.drop-btn { 
    font-weight: 600; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.drop-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(17, 19, 23, 0.98) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    list-style: none;
    padding: 0.75rem 0.5rem;
    margin: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.dropdown.open .drop-menu,
.dropdown:hover .drop-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}
.drop-menu li { 
    list-style: none; 
    margin: 0.15rem 0;
    animation: slideInMenuItem 0.3s ease backwards;
}
.drop-menu li:nth-child(1) { animation-delay: 0.05s; }
.drop-menu li:nth-child(2) { animation-delay: 0.1s; }
.drop-menu li:nth-child(3) { animation-delay: 0.15s; }
.drop-menu li:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideInMenuItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.drop-menu li a, 
.drop-menu li span {
    display: block;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.drop-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drop-menu li a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(31, 111, 235, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-menu li a:hover::before {
    transform: scaleY(1);
}

.drop-menu li a:hover::after {
    opacity: 1;
}

.drop-menu li a:hover {
    background: linear-gradient(135deg, 
                rgba(31, 111, 235, 0.15) 0%, 
                rgba(88, 166, 255, 0.15) 100%);
    color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(31, 111, 235, 0.25);
    border: 1px solid rgba(31, 111, 235, 0.3);
}

.drop-menu li span[aria-disabled="true"] {
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* avoid unexpected zoom on iOS */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  background: #000000;
  color: var(--text-primary);
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* Capa de profundidad sutil - NEGRO PURO sin azul */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Light theme background */
body.theme-light {
  background: #ffffff;
}

body.theme-light::before {
  background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
}

/* Theme switch global transition enhancer */
body.theme-animating,
.navbar, .glass,
.player-card, .tier-column, .feature-card,
.rankings-section, .rankings-list-section,
.player-rank-row, .rank-tier-badge, .pill, .modality-card,
.drop-menu, .footer, .modal-content, .modal-stat {
  transition: background-color .8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              color .8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color .8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow .8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              filter .8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}/* Theme switch overlay */
.theme-switch-overlay { 
  position: fixed; 
  inset: 0; 
  pointer-events: none; 
  z-index: 2000; 
  opacity: 0; 
  background: radial-gradient(circle 1200px at var(--tx,50%) var(--ty,50%), 
    rgba(255,255,255,0.15) 0%, 
    rgba(255,255,255,0.08) 30%, 
    transparent 70%);
  animation: themeBurst 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; 
}

@keyframes themeBurst { 
  0% { opacity: 0; transform: scale(0.8); } 
  20% { opacity: 1; transform: scale(1.1); } 
  70% { opacity: 0.6; transform: scale(1.05); } 
  100% { opacity: 0; transform: scale(1); } 
}a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
    height: auto; /* keep aspect ratio on mobile */
}

/* Global list reset (helps when partial styles load) */
ul, ol { list-style: none; padding-left: 0; }

.section-container { max-width: 1560px; margin: 0 auto; padding: 0 2rem; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------- */
/*      PARTICLES      */
/* ------------------- */

#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

#bg-squares { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-square { position: absolute; width: 120px; height: 120px; border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; transform: rotate(3deg) scale(0.96); opacity: 0; animation: squarePulse 9s ease-in-out infinite; }
@keyframes squarePulse {
    0% { opacity: 0; transform: translateY(0) scale(0.96) rotate(2deg); }
    12% { opacity: .45; }
    50% { opacity: .15; transform: translateY(-40px) scale(1.02) rotate(-2deg); }
    100% { opacity: 0; transform: translateY(0) scale(0.96) rotate(2deg); }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: #79aef0; /* slightly dimmer */
    opacity: 0.12; /* fainter base */
    animation: floatUp 18s infinite ease-in-out;
}

@keyframes floatUp {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.12; }
    60% { transform: translateY(-110vh) translateX(10vw) scale(1.2); opacity: 0.26; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.12; }
}

/* Python Code Rain Effect */
#python-code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(31, 111, 235, 0.20);
    white-space: nowrap;
    animation: fallDown linear infinite;
    text-shadow: 0 0 5px rgba(31, 111, 235, 0.15);
    font-weight: 500;
}

@keyframes fallDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.20;
    }
    90% {
        opacity: 0.20;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ------------------- */
/*       NAVBAR        */
/* ------------------- */

.glass {
    /* Fallback for browsers without color-mix/backdrop-filter */
    background: rgba(10,10,10,0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Modern override when supported */
    background: color-mix(in oklab, var(--bg-primary) 70%, transparent);
}
/* If color-mix is unsupported, keep the fallback background */
.no-color-mix .glass { background: rgba(10,10,10,0.7); }
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.02);
    animation: navbarSlideDown 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.7);
    border-bottom-color: rgba(88, 166, 255, 0.25);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-light .navbar {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(31, 111, 235, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(31, 111, 235, 0.25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: brandFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

@keyframes brandFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-40px) translateY(-10px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

.brand::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle at center, rgba(31, 111, 235, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 12px;
    z-index: -1;
}

.brand:hover::before {
    opacity: 1;
    animation: brandPulse 2s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.brand:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 24px rgba(31, 111, 235, 0.4));
}

.brand:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.15s ease;
}

.brand-accent {
    color: #4a90d9;
    display: inline-block;
    /* Sin brillo - limpio y elegante */
}

@keyframes accentShine {
    0%, 100% {
        background-position: 0% center;
        filter: drop-shadow(0 0 12px rgba(88, 166, 255, 0.6));
    }
    50% {
        background-position: 100% center;
        filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.8));
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: linksFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s backwards;
}

@keyframes linksFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        filter: blur(0);
    }
}

.nav-links a,
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.7;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    position: relative;
    padding: 0.6rem 0.8rem;
    letter-spacing: 0.01em;
    border-radius: 8px;
}

.nav-links a::before,
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(88, 166, 255, 0.1));
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.nav-links a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(88, 166, 255, 0.3) 15%,
        #58A6FF 50%, 
        rgba(88, 166, 255, 0.3) 85%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.6),
                0 0 24px rgba(88, 166, 255, 0.3);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.nav-links a:hover::before,
.nav-link:hover::before {
    opacity: 1;
}

.nav-links a:hover,
.nav-link:hover {
    color: #58A6FF;
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5),
                 0 0 40px rgba(88, 166, 255, 0.2);
}

.nav-links a:hover::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a:active,
.nav-link:active {
    transform: translateY(0) scale(0.97);
    transition: all 0.15s ease;
}

/* Floating animation for links */
.nav-links a,
.nav-link {
    animation: linkFloat 3s ease-in-out infinite;
}

.nav-links a:nth-child(1) { animation-delay: 0s; }
.nav-links a:nth-child(2) { animation-delay: 0.2s; }
.nav-links a:nth-child(3) { animation-delay: 0.4s; }
.nav-links .dropdown:nth-child(4) { animation-delay: 0.6s; }
.nav-links .dropdown:nth-child(5) { animation-delay: 0.8s; }

@keyframes linkFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: actionsFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s backwards;
}

@keyframes actionsFadeIn {
    0% {
        opacity: 0;
        transform: translateX(40px) translateY(-10px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

/* DROPDOWN MEJORADO CON PADDING INVISIBLE */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.drop-btn {
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.95rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0.6rem 0.8rem;
    margin: 0;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    display: inline-block;
    position: relative;
    letter-spacing: 0.01em;
    border-radius: 8px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.drop-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(88, 166, 255, 0.1));
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.drop-btn:hover::before,
.dropdown.open .drop-btn::before {
    opacity: 1;
}

.drop-btn:hover,
.dropdown.open .drop-btn {
    opacity: 1;
    color: #58A6FF;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5),
                 0 0 40px rgba(88, 166, 255, 0.2);
}

.drop-btn:active {
    transform: translateY(0) scale(0.97);
    transition: all 0.15s ease;
}

.drop-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drop-btn:hover,
.dropdown:hover .drop-btn {
    color: var(--accent-primary);
    opacity: 1;
}

.drop-btn:hover::after,
.dropdown:hover .drop-btn::after {
    width: 100%;
}

.drop-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9) rotateX(-15deg);
    transform-origin: top center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 
                0 15px 40px rgba(31, 111, 235, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(88, 166, 255, 0.1);
    list-style: none;
    padding: 1rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 9999;
    perspective: 1000px;
}

.drop-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(88, 166, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(31, 111, 235, 0.05) 100%
    );
    border-radius: 16px;
    pointer-events: none;
}

.dropdown:hover .drop-menu,
.drop-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
    animation: dropdownAppear 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes dropdownAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9) rotateX(-15deg);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) scale(1.02) rotateX(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
    }
}

.dropdown:hover .drop-menu li {
    animation: menuItemSlide 0.5s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.dropdown:hover .drop-menu li:nth-child(1) { animation-delay: 0.08s; }
.dropdown:hover .drop-menu li:nth-child(2) { animation-delay: 0.14s; }
.dropdown:hover .drop-menu li:nth-child(3) { animation-delay: 0.20s; }
.dropdown:hover .drop-menu li:nth-child(4) { animation-delay: 0.26s; }

@keyframes menuItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px) translateY(10px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

.drop-menu li {
    margin: 0.3rem 0;
    position: relative;
}

.drop-menu li a {
    display: block;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.drop-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #58A6FF, #1F6FEB);
    border-radius: 2px;
    transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.8);
}

.drop-menu li a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(88, 166, 255, 0.08) 0%, 
        rgba(31, 111, 235, 0.12) 100%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 12px;
}

.drop-menu li a:hover::before {
    height: 70%;
}

.drop-menu li a:hover::after {
    opacity: 1;
}

.drop-menu li a:hover {
    color: #58A6FF;
    transform: translateX(8px);
    padding-left: 2rem;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
    box-shadow: 0 6px 20px rgba(31, 111, 235, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.drop-menu li a:active {
    transform: translateX(6px) scale(0.98);
    transition: all 0.15s ease;
}

/* Theme toggle button */
.theme-toggle { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    padding: 0.75rem 1.3rem; 
    border: 1px solid rgba(88, 166, 255, 0.25); 
    border-radius: 12px; 
    background: rgba(17, 19, 23, 0.6); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.3), transparent 60%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.5);
}

.theme-toggle:hover::before {
    opacity: 0.5;
    transform: scale(1);
}

/* Brillo eliminado - Solo transición suave */

.theme-toggle:hover { 
    background: var(--bg-tertiary); 
    transform: translateY(-2px) scale(1.03);
    border-color: var(--border-secondary);
}

.theme-toggle:active {
    transform: translateY(-1px) scale(0.98);
}

.theme-toggle .icon { 
    font-size: 1.2rem; 
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:hover .icon {
    transform: rotate(180deg) scale(1.2);
}

.theme-toggle .label { 
    font-size: 0.9rem; 
    color: var(--text-secondary); 
    transition: color 0.3s ease;
}

.theme-toggle:hover .label {
    color: var(--text-primary);
}

.theme-toggle .icon {
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1.1rem;
}

.theme-toggle:hover .icon {
    transform: rotate(360deg) scale(1.2);
    filter: drop-shadow(0 0 12px rgba(88, 166, 255, 0.6));
}

.theme-toggle:active {
    transform: scale(0.95);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Brillo eliminado - Solo slide down */

.navbar {
    animation: navbarSlideDown 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Responsive navbar adjustments */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a,
    .nav-link,
    .drop-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.6rem;
    }
    
    .nav-search {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        position: static;
        transform: none;
        gap: 1rem;
    }
    
    .brand {
        font-size: 1.3rem;
    }
}

.nav-search { 
    background: rgba(17, 19, 23, 0.6); 
    border: 1px solid rgba(88, 166, 255, 0.2); 
    border-radius: 12px; 
    padding: 0.75rem 1.25rem 0.75rem 2.75rem; 
    color: var(--text-primary); 
    min-width: 260px; 
    outline: none; 
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-search::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-search:focus::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(88, 166, 255, 0.6));
}

.nav-search:focus { 
    border-color: #58A6FF; 
    background: rgba(31, 111, 235, 0.1);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.15), 
                0 8px 32px rgba(31, 111, 235, 0.3),
                inset 0 2px 8px rgba(0, 0, 0, 0.3),
                inset 0 0 40px rgba(88, 166, 255, 0.1);
    transform: translateY(-3px) scale(1.03);
}

.nav-search::placeholder {
    color: rgba(139, 148, 158, 0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-search:focus::placeholder {
    opacity: 0;
    transform: translateX(10px);
}

/* Brillo eliminado del search */

.chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.chip:hover {
    background-color: var(--border-primary);
}

.chip img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.copy-state {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Theme toggle removed */


/* ------------------- */
/*     HERO SECTION    */
/* ------------------- */

.hero-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-top: 80px; /* navbar height */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Luz del centro removida por petición del usuario */

.hero-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: zoomInFade 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    z-index: 2;
}

.hero-content > * {
    opacity: 1 !important;
    visibility: visible !important;
}

.main-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideUpBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0s;
}

@keyframes titleEntrance {
    from {
        transform: scale(0.5) rotateX(-90deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }
}

.main-title .gradient {
    background: linear-gradient(45deg, var(--accent-primary), var(--text-primary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.main-title .dot { color: var(--accent-primary); }

.reveal { opacity: 1; transform: none; }
.reveal.pending { opacity: 0; transform: translateY(20px); }
.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-title .title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpWord 1.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-title .title-word:nth-child(2) { animation-delay: 0.4s; }
.main-title .title-word:nth-child(3) { animation-delay: 0.8s; }


@keyframes slideUpWord {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 600px;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideUpBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
}

.motto { 
    font-weight: 800; 
    font-size: clamp(1.25rem, 2.5vw, 1.6rem); 
    letter-spacing: .02em; 
    color: var(--accent-primary); 
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    animation: zoomInFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0s forwards;
}

/* Todos los brillos eliminados - estilo minimalista puro */

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ------------------- */
/*  MODALITIES SECTION */
/* ------------------- */

.modalities-section {
    padding: 4rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* 🔥 NUCLEAR FIX: Forzar modalidades SIEMPRE horizontal - SOBRESCRIBE TODO 🔥 */
#modalities-grid,
.modalities-pills,
.modalities-grid,
section#modalities > *,
.modalities-section > * {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    max-width: 1200px;
    margin: 0 auto !important;
    width: 100% !important;
    /* Destruir cualquier propiedad grid que pueda existir */
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    grid-auto-rows: unset !important;
}

/* Cada pill individual DEBE ser inline-flex y nunca ocupar width completo */
.modalities-pills > *,
.modalities-grid > *,
#modalities-grid > *,
button.pill {
    display: inline-flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: 250px !important;
}

@media (max-width: 768px) {
    #modalities-grid,
    .modalities-pills,
    .modalities-grid {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .pill,
    .modality-card {
        flex: 0 0 calc(50% - 1rem) !important;
        max-width: calc(50% - 1rem) !important;
    }
}

/* MEGA ROBUSTO: Forzar visibilidad de controles críticos */
.toolbar,
.region-filters,
#searchBox,
#modalities,
#modalities-grid,
.modalities-section,
.pill,
.modality-card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

.modalities-pills {
    display: grid !important;
}

.region-filters {
    display: flex !important;
}

.pill,
.modality-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: zoomInFade 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    flex: 0 0 auto !important;
    width: 200px !important;
    min-width: 180px !important;
    max-width: 250px !important;
    /* Prevenir que se estire a full width */
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    /* Efectos modernos elegantes */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(99, 102, 241, 0.05);
    position: relative;
    overflow: hidden;
}

/* Animaciones escalonadas para pills */
.pill:nth-child(1) { animation-delay: 0.1s; }
.pill:nth-child(2) { animation-delay: 0.2s; }
.pill:nth-child(3) { animation-delay: 0.3s; }
.pill:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de brillo que recorre la pill */
.pill::after,
.modality-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(99, 102, 241, 0.4) 50%, 
                transparent 100%);
    transition: left 0.6s ease;
}

.pill:hover,
.modality-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3),
                0 0 60px rgba(99, 102, 241, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, 
                var(--bg-secondary) 0%, 
                rgba(99, 102, 241, 0.1) 100%);
}

.pill:hover::after,
.modality-card:hover::after {
    left: 100%;
}

.pill.active,
.modality-card.active {
    /* Highlight only the borders (like before), avoid filling the whole card */
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    /* inner ring for crisp edge + subtle outside glow */
    box-shadow: 0 0 0 2px var(--accent-primary) inset, 0 8px 24px -12px var(--glow);
    transform: translateY(-5px) scale(1.02);
}

.pill img,
.modality-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.pill:hover img,
.modality-card:hover img {
    transform: scale(1.1);
}

.pill span,
.modality-card span {
    font-weight: 600;
    font-size: 1.1rem;
}


/* ------------------- */
/*   FEATURES SECTION  */
/* ------------------- */

.features-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 cards per row on wide screens */
    gap: 2rem;
}
@media (max-width: 1000px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: linear-gradient(135deg, 
        rgba(5, 5, 8, 0.95) 0%, 
        rgba(8, 8, 12, 0.9) 50%,
        rgba(5, 5, 8, 0.95) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent);
    transform: translate(-50%, -50%);
    transition: width var(--speed-gentle) var(--ease-elegant), 
                height var(--speed-gentle) var(--ease-elegant);
}

.feature-card:hover::after {
    width: 300px;
    height: 300px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: var(--border-secondary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: breathe 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.1); }
    50% { transform: translateY(-5px) scale(1.05); }
    75% { transform: translateY(-8px) scale(1.08); }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Metric cards (Jugadores/Jugadores Élite) same color as others */
.feature-card.metric {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
}
.feature-card.metric .feature-icon { filter: drop-shadow(0 6px 20px var(--glow)); }
.metric-number { font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; color: var(--accent-primary); }

/* Animated cyan code background for bot card */
.feature-bot { position: relative; overflow: hidden; }
.feature-bot > :not(.feature-bg-code) { position: relative; z-index: 2; }
.feature-bot::after { content:""; position:absolute; inset:-30%; background: linear-gradient(120deg, transparent 0%, rgba(126,195,255,.10) 20%, transparent 40%); transform: translateX(-100%); animation: sheen 7s ease-in-out infinite; pointer-events:none; z-index:2; }
.feature-bg-code { position: absolute; inset: 0; opacity: .26; filter: blur(2.5px); pointer-events: none; z-index: 1; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.75) 12%, rgba(0,0,0,.75) 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.75) 12%, rgba(0,0,0,.75) 88%, transparent 100%); }
.feature-bg-code pre { position: absolute; inset: 0 auto auto 0; right: 0; height: 160%; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 12px; line-height: 1.45; color: #8fd3ff; text-shadow: 0 0 12px rgba(143,211,255,.25); white-space: pre; padding: 1.25rem; animation: codeDrift 26s linear infinite; }
.feature-bg-code::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(126,195,255,.08) 0 1px, transparent 1px 8px); }
@keyframes codeDrift { 0% { transform: translateY(0); } 100% { transform: translateY(-25%); } }
@keyframes sheen { 0% { transform: translateX(-100%);} 50% { transform: translateX(40%);} 100% { transform: translateX(120%);} }

/* Two-column comparison for bot card */
.bot-compare { display: grid; grid-template-columns: 1fr 12px 1fr; gap: 1.25rem; margin-top: 1rem; text-align: left; position: relative; }
.bot-side { position: relative; border: 1px solid var(--border-primary); border-radius: var(--radius-md); padding: 1rem 1.25rem; background: var(--bg-secondary); overflow: hidden; }
.bot-side-title { margin: 0 0 .5rem 0; font-size: 1.15rem; font-weight: 800; }
.bot-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.bot-list li { list-style: disc; color: var(--text-secondary); }
.bot-list.good li::marker { color: #34d399; }
.bot-list.bad li::marker { color: #f87171; }
.bot-separator { align-self: stretch; width: 12px; border-radius: 999px; background: radial-gradient(circle at 50% 50%, rgba(88,166,255,.6), rgba(88,166,255,.05)); box-shadow: inset 0 0 10px rgba(88,166,255,.35); }
.bot-code { position: absolute; inset: 0; opacity: .14; filter: blur(2px); pointer-events: none; }
.bot-code.left { background: linear-gradient(180deg, rgba(248,113,113,.12), transparent); }
.bot-code.right { background: linear-gradient(180deg, rgba(59,130,246,.16), transparent); }
.bot-code pre { position: absolute; inset: 0 0 auto 0; height: 160%; color: #8fd3ff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 11.5px; line-height: 1.45; white-space: pre; padding: 1rem; mix-blend-mode: screen; animation: codeDrift 22s linear infinite; }
@media (max-width: 900px) { .bot-compare { grid-template-columns: 1fr; } .bot-separator { display: none; } }

/* Staggered animation for features */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }


/* ------------------- */
/*   RANKINGS SECTION  */
/* ------------------- */

.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: 0.6s;
    /* Efectos modernos */
    background: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.03) 0%, 
                transparent 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
}
.badge { 
    padding: .5rem .9rem; 
    border: 1px solid var(--border-primary); 
    border-radius: var(--radius-pill); 
    background: var(--bg-secondary); 
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2);
}
.badge.active { border-color: var(--accent-primary); box-shadow: 0 0 0 6px var(--glow); }
.badge.region-NA { color: #ff7675; }
.badge.region-SA { color: #55efc4; }
.badge.region-EU { color: #74b9ff; }
.view-toggle { display: flex; gap: .5rem; background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: var(--radius-pill); padding: .25rem; }
.toggle { padding: .5rem .9rem; border-radius: var(--radius-pill); font-weight: 700; }
.toggle.active { background: var(--accent-primary); color: var(--bg-primary); }
.search { 
    background: var(--bg-secondary); 
    border: 1.5px solid var(--border-primary); 
    border-radius: var(--radius-pill); 
    padding: .8rem 1.5rem; 
    color: var(--text-primary); 
    width: 100%;
    max-width: 500px;
    -webkit-appearance: none; 
    appearance: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: 0.7s;
    text-align: center;
    font-size: 1rem;
    /* Efectos modernos */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search:hover {
    border-color: rgba(31, 111, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1),
                0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search:focus {
    outline: none;
    border-color: rgba(31, 111, 235, 0.6);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2),
                0 12px 35px rgba(31, 111, 235, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.rankings-section {
    padding: 4rem 0;
    min-height: 100vh;
    position: relative; z-index: 1;
}

.rankings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.region-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.region-filters button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    /* Efectos modernos */
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.region-filters button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
                rgba(99, 102, 241, 0.3) 0%, 
                transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.region-filters button:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3),
                0 0 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.region-filters button:hover::before {
    width: 300px;
    height: 300px;
}

.region-filters button.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary) !important;
    border-color: var(--accent-primary);
}

body.theme-light .region-filters button.active {
    color: #fff !important;
}

#searchBox {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 250px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#searchBox:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary), 0.3);
}


/* Tier groups (Tier 1..5) use 5 equal columns on wide screens for symmetry */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .tier-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Narrow phones: allow smaller min width to avoid looking zoomed out */
@media (max-width: 480px) {
    .tier-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

.tier-column { position: relative; background-color: var(--bg-secondary); border-radius: var(--radius-md); padding: 1rem; border-top: 3px solid var(--border-primary); transition: box-shadow var(--transition-fast); }
.tier-column::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-top-left-radius: inherit; border-top-right-radius: inherit; background: var(--border-primary); }

.tier-column:hover {
    box-shadow: var(--shadow-md);
}

.tier-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom: 1rem; }
.tier-subtitle { color: var(--text-secondary); font-size:.9rem; font-weight:600; }

.tier-title { font-size: 1.35rem; font-weight: 800; display:inline-flex; align-items:center; gap:.5rem; }
/* Plain emoji icon (no background) */
.tier-emoji { width: 18px; height: 18px; display:inline-block; vertical-align: middle; }

/* Requested colors: apply only to the white title badge background via border accent */
/* Top edge color per tier (requested palette); Tier 4–5 keep neutral */
.tier-column.tier-1 { border-top-color: #f0b857; }
.tier-column.tier-1::before { background: #f0b857; }
.tier-column.tier-2 { border-top-color: #a9b1b9; }
.tier-column.tier-2::before { background: #a9b1b9; }
.tier-column.tier-3 { border-top-color: #d59161; }
.tier-column.tier-3::before { background: #d59161; }
/* Fallback by data attribute, in case tier-1..3 class isn't present */
.tier-column[data-tier-id="tier1"] { border-top-color: #f0b857; }
.tier-column[data-tier-id="tier1"]::before { background: #f0b857; }
.tier-column[data-tier-id="tier2"] { border-top-color: #a9b1b9; }
.tier-column[data-tier-id="tier2"]::before { background: #a9b1b9; }
.tier-column[data-tier-id="tier3"] { border-top-color: #d59161; }
.tier-column[data-tier-id="tier3"]::before { background: #d59161; }
/* Tier 4 and 5 neutral (keep same) */
.tier-column.tier-4 .tier-title-badge,
.tier-column.tier-5 .tier-title-badge { background: #ffffff; border: 2px solid var(--border-primary); }

.player-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.8rem 1rem; 
    border-radius: var(--radius-md); 
    margin-bottom: 0.6rem; 
    cursor: pointer; 
    border: 1px solid var(--border-primary); 
    background: linear-gradient(135deg, 
        rgba(5, 5, 8, 0.8) 0%, 
        rgba(10, 10, 15, 0.75) 100%);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    will-change: transform; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transition: left var(--speed-graceful) var(--ease-elegant);
    pointer-events: none;
}

.player-card:hover::before {
    left: 100%;
}

.player-card:hover {
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%, 
        rgba(13, 13, 18, 0.9) 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6),
                0 0 30px var(--glow),
                0 0 50px rgba(31, 111, 235, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.player-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-primary); }

.player-info {
    flex-grow: 1;
    min-width: 0; /* allow text to shrink and ellipsis work in flex */
    overflow: hidden;
}

.player-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.player-title,
.player-tier {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.player-points {
    text-align: right;
}

.points-value {
    font-weight: 800;
    color: var(--accent-primary);
}

.points-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
}

/* Rankings List Section */
.rankings-list-section { display: none; }

.player-rank-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 2fr 100px;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, 
                var(--bg-secondary) 0%, 
                rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    /* Efectos modernos */
    backdrop-filter: blur(8px);
}

.player-rank-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, 
                var(--accent-primary) 0%, 
                transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.player-rank-row:hover {
    background: linear-gradient(135deg, 
                var(--bg-tertiary) 0%, 
                rgba(99, 102, 241, 0.08) 100%);
    transform: translateX(8px) translateY(-3px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2),
                0 0 60px rgba(99, 102, 241, 0.1);
}

.player-rank-row:hover::before {
    opacity: 1;
}

.rank-position {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-align: center;
}

.player-rank-row:nth-child(1) .rank-position { color: #FFD700; }
.player-rank-row:nth-child(2) .rank-position { color: #C0C0C0; }
.player-rank-row:nth-child(3) .rank-position { color: #CD7F32; }


.rank-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0; /* allow inner text to truncate instead of overflowing into tiers */
}

.rank-player .player-avatar {
    width: 45px;
    height: 45px;
}

.rank-player .player-details {
    display: flex;
    flex-direction: column;
}

.rank-player .player-name {
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-player .player-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rank-region {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
}

.rank-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.rank-tier-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.rank-tier-badge img {
    width: 16px;
    height: 16px;
}

.rank-tier-badge span {
    font-size: 0.75rem;
    font-weight: 600;
}

.rank-points {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-align: right;
}

/* Overall Top 50 grid inside tier view */
.overall-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.tier-grid > .overall-grid { grid-column: 1 / -1; }
@media (max-width: 900px){ .overall-grid { grid-template-columns: 1fr; } }

/* Normalize rank row height to avoid uneven lines */
.overall-grid .player-rank-row {
    min-height: 100px;
    /* Give more room to long nicknames; push tiers further right */
    grid-template-columns: 50px minmax(0,1.6fr) 1.4fr 110px; /* position, player, tiers, points */
}
/* Hide region chip only in Overall grid */
.overall-grid .rank-region { display: none; }

/* On very small screens, keep the row simple: hide tiers and points */
@media (max-width: 480px) {
    .overall-grid .player-rank-row { grid-template-columns: 40px 1fr; }
    .overall-grid .rank-tiers, .overall-grid .rank-points { display: none; }
}

/* View Switching */
/* Only the section with .active-view is shown (JS toggles this). */
#rankings-section { display: none; }
#rankings-list-section { display: none; }
#rankings-section.active-view, #rankings-list-section.active-view { display: block; animation: fadeIn 0.6s ease; }

/* Player card structure inside tier columns */
.player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.player-card:hover { background-color: var(--bg-tertiary); transform: translateY(-2px); }

.player-info { display: flex; align-items: center; gap: 0.75rem; }
.player-details { display: flex; flex-direction: column; }
.player-title { font-size: 0.85rem; color: var(--text-secondary); }
.player-stats { display: flex; gap: .6rem; align-items: center; }
.player-stats .stat { text-align: right; }
.player-stats .stat-value { font-weight: 700; }

/* SKELETONS */
.skeleton { position: relative; overflow: hidden; }
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Fallback gradient (no color-mix) */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    /* Modern gradient overrides when supported */
    background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--bg-tertiary) 70%, white 5%), transparent);
    animation: shimmer 1.2s infinite;
}
.no-color-mix .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.skel-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--bg-tertiary); }
.skel-line { width: 140px; height: 10px; border-radius: 6px; background: var(--bg-tertiary); }
.skel-line.small { width: 100px; height: 8px; opacity: .7; }
.skel-chip { width: 70px; height: 16px; border-radius: 999px; background: var(--bg-tertiary); }
.skel-medal { width: 40px; height: 20px; border-radius: 6px; background: var(--bg-tertiary); }
.skel-badges { height: 20px; border-radius: 6px; background: var(--bg-tertiary); }
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }


/* Tier-specific colors */
.tier-column[data-tier-id="ht1"] { border-color: var(--tier-ht1); }
.tier-column[data-tier-id="lt1"] { border-color: var(--tier-lt1); }
.tier-column[data-tier-id="ht2"] { border-color: var(--tier-ht2); }
.tier-column[data-tier-id="lt2"] { border-color: var(--tier-lt2); }
.tier-column[data-tier-id="ht3"] { border-color: var(--tier-ht3); }
.tier-column[data-tier-id="lt3"] { border-color: var(--tier-lt3); }
.tier-column[data-tier-id="ht4"] { border-color: var(--tier-ht4); }
.tier-column[data-tier-id="lt4"] { border-color: var(--tier-lt4); }
.tier-column[data-tier-id="ht5"] { border-color: var(--tier-ht5); }
.tier-column[data-tier-id="lt5"] { border-color: var(--tier-lt5); }
.tier-column[data-tier-id="unranked"] { border-color: var(--unranked); }


/* ------------------- */
/*        MODAL        */
/* ------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: grid;
    place-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* don't block page when hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* interactive when shown */
}

.modal-content {
    background: linear-gradient(135deg, 
                var(--bg-secondary) 0%, 
                rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 550px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Efectos modernos y elegantes */
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 0 100px rgba(99, 102, 241, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
}

.modal-player-name {
    font-size: 2rem;
    font-weight: 800;
}

.modal-player-discord {
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
}

.modal-player-discord:hover {
    color: var(--accent-primary);
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-stat {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    /* Efectos modernos */
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.modal-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(99, 102, 241, 0.1) 50%, 
                transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.modal-stat:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3),
                0 0 60px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.6);
}

.modal-stat:hover::before {
    opacity: 1;
    animation: shimmerSweep 1s ease infinite;
}

@keyframes shimmerSweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.modal-stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.modal-modalities h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 0.5rem;
}

.modalities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.modality-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: transform .25s ease, background-color .25s ease;
}

.modality-item img {
    width: 30px;
    height: 30px;
}

.modality-item:hover { transform: translateX(4px); }

.modality-info .modality-name {
    font-weight: 600;
}

.modality-info .modality-tier {
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ------------------- */
/*       FOOTER        */
/* ------------------- */

.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-primary);
}

.footer a {
    color: var(--accent-primary);
    font-weight: 600;
}


/* ------------------- */
/*     ANIMATIONS      */
/* ------------------- */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.tier-column, .modality-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animations */
.modality-card:nth-child(1) { animation-delay: 0.1s; }
.modality-card:nth-child(2) { animation-delay: 0.2s; }
.modality-card:nth-child(3) { animation-delay: 0.3s; }
.modality-card:nth-child(4) { animation-delay: 0.4s; }
.modality-card:nth-child(5) { animation-delay: 0.5s; }
.modality-card:nth-child(6) { animation-delay: 0.6s; }

/* ------------------- */
/*    RESPONSIVENESS   */
/* ------------------- */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        order: 1;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-actions {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    .brand {
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    .hero-section {
        padding-top: 180px; /* Adjusted for taller mobile navbar */
    }
    .rankings-header {
        flex-direction: column;
        align-items: stretch;
    }
    .filters {
        justify-content: center;
    }
    #searchBox {
        width: 100%;
    }
}

/* ================================== */
/*   CHEATERLIST & STAFFLIST STYLES   */
/* ================================== */

/* Section visibility control */
.section-container {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.section-container.active-view {
    display: block;
    opacity: 1;
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Loading & Error States */
.loading-indicator,
.error-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    /* Efectos modernos */
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

.spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-left-color: rgba(31, 111, 235, 0.3);
    border-bottom-color: rgba(31, 111, 235, 0.3);
    border-radius: 50%;
    animation: spin 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

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

.error-state {
    animation: fadeInScale 0.6s ease-out;
}

.error-state p {
    color: #ef476f;
    font-size: 1.1rem;
}

.empty-state {
    animation: fadeInScale 0.6s ease-out;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== */
/*    CHEATERLIST       */
/* ==================== */

.cheaterlist-section {
    padding: 3rem 2rem;
}

.cheater-modality-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.03), transparent);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 71, 111, 0.1);
}

.cheater-modality-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ef476f, #d62839);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.cheater-modality-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ef476f, transparent);
    border-radius: 2px;
}

.modality-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px rgba(239, 71, 111, 0.3));
}

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

.cheater-card {
    background: linear-gradient(135deg, 
        rgba(239, 71, 111, 0.12), 
        rgba(211, 47, 47, 0.08)
    );
    border: 1px solid rgba(239, 71, 111, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transform-origin: center;
    cursor: pointer;
}

/* Efecto de glow expandible en hover */
.cheater-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
                rgba(239, 71, 111, 0.25) 0%, 
                transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.7s ease;
    opacity: 0;
    pointer-events: none;
}

.cheater-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef476f, #d62839);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

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

.cheater-card:hover::after {
    width: 500px;
    height: 500px;
    opacity: 1;
}

.cheater-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(239, 71, 111, 0.6);
    box-shadow: 
        0 20px 50px rgba(239, 71, 111, 0.3),
        0 0 80px rgba(239, 71, 111, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.cheater-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(239, 71, 111, 0.3);
    transition: all var(--transition-fast);
}

.cheater-card:hover .cheater-avatar {
    transform: scale(1.1);
    border-color: rgba(239, 71, 111, 0.6);
    box-shadow: 0 0 20px rgba(239, 71, 111, 0.4);
}

.cheater-info {
    flex: 1;
}

.cheater-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: var(--text-primary);
}

.cheater-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 71, 111, 0.15);
    border: 1px solid rgba(239, 71, 111, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ef476f;
}

.cheater-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cheater-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.cheater-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.detail-value.expires {
    color: #fca311;
    font-weight: 600;
}

/* ==================== */
/*      STAFFLIST       */
/* ==================== */

.stafflist-section {
    padding: 3rem 2rem;
}

.staff-rank-section {
    margin-bottom: 3rem;
}

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

.staff-rank-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.staff-count {
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.staff-card {
    background: linear-gradient(135deg, 
        rgba(31, 111, 235, 0.12), 
        rgba(88, 166, 255, 0.08)
    );
    border: 1px solid rgba(31, 111, 235, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transform-origin: center;
    cursor: pointer;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1F6FEB, #58A6FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

/* Efecto de glow azul expandible en hover */
.staff-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
                rgba(31, 111, 235, 0.25) 0%, 
                transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.7s ease;
    opacity: 0;
    pointer-events: none;
}

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

.staff-card:hover::after {
    width: 500px;
    height: 500px;
    opacity: 1;
}

.staff-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(31, 111, 235, 0.6);
    box-shadow: 
        0 20px 50px rgba(31, 111, 235, 0.3),
        0 0 80px rgba(31, 111, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(31, 111, 235, 0.3);
    transition: all var(--transition-fast);
}

.staff-card:hover .staff-avatar {
    transform: scale(1.1);
    border-color: rgba(31, 111, 235, 0.6);
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.4);
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: var(--text-primary);
}

.staff-rank-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(31, 111, 235, 0.15);
    border: 1px solid rgba(31, 111, 235, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: #58A6FF;
}

.staff-modalities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.modality-badge:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.staff-discord {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== */
/*   NAVBAR UPDATES     */
/* ==================== */

/* Navegación más compacta y moderna */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem !important;
}

.nav-links a.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Animación de fondo deslizante */
.nav-links a.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transition: left 0.5s ease;
    opacity: 0.1;
}

.nav-links a.nav-link:hover::before {
    left: 100%;
}

.nav-links a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a.nav-link:hover::after {
    width: 80%;
}

.nav-links a.nav-link:hover {
    background: rgba(31, 111, 235, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2);
}

.nav-links a.nav-link:active {
    transform: translateY(0);
}

/* Botón Discords con mismo estilo */
.discords-btn {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.discords-btn:hover {
    background: rgba(31, 111, 235, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2);
}

/* Nav actions más compactas */
.nav-actions {
    gap: 0.75rem;
}

.nav-search {
    width: 180px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ==================== */
/*   ANIMATIONS         */
/* ==================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cheater-card {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.staff-card {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
}

/* ==================== */
/*   RESPONSIVE         */
/* ==================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cheater-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .cheater-modality-title,
    .staff-rank-title {
        font-size: 1.5rem;
    }
    
    .staff-rank-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a,
    .nav-links .discords-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ================================== */
/*   EFECTOS VISUALES AVANZADOS       */
/* ================================== */

/* Parallax Background Layers */
#particle-container,
#bg-squares {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Particle System */
#particle-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 30%, 
        rgba(31, 111, 235, 0.15) 0%, 
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 70%, 
        rgba(88, 166, 255, 0.12) 0%, 
        transparent 50%
    ),
    radial-gradient(
        circle at 50% 50%, 
        rgba(139, 92, 246, 0.08) 0%, 
        transparent 60%
    );
    animation: moveParticles 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

/* Brillo pulseGlow eliminado - solo movimiento de partículas */

@keyframes moveParticles {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -30px);
    }
    50% {
        transform: translate(-15px, -15px);
    }
    75% {
        transform: translate(10px, 25px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Dynamic Blur Effects */
.cheater-card::after,
.staff-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(31, 111, 235, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    filter: blur(40px);
}

.cheater-card:hover::after,
.staff-card:hover::after {
    opacity: 1;
}

/* Glow Effects on Hover */
.cheater-name,
.staff-name {
    position: relative;
    transition: all var(--transition-fast);
}

.cheater-card:hover .cheater-name,
.staff-card:hover .staff-name {
    text-shadow: 0 0 20px rgba(31, 111, 235, 0.5);
}

/* Floating Animation for Cards */
@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ELIMINADO: floatUp infinito causaba bugs en hover
.cheater-card:hover,
.staff-card:hover {
    animation: floatUp 2s ease-in-out infinite;
}
*/

/* Enhanced Section Transitions */
.section-container {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-container.active-view {
    transform: translateY(0);
}

/* Shimmer Effect for Titles */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.section-title {
    background: linear-gradient(
        90deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 25%,
        var(--accent-primary) 50%,
        var(--accent-secondary) 75%,
        var(--accent-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Particle Trail Effect on Mouse Move */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(31, 111, 235, 0.03) 0%,
        transparent 30%
    );
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Enhanced Border Animations */
.cheater-card,
.staff-card {
    background-position: 0% 50%;
    background-size: 200% 200%;
    transition: background-position 0.8s ease, transform 0.4s ease;
}

.cheater-card:hover {
    background: linear-gradient(
        135deg,
        rgba(239, 71, 111, 0.08) 0%,
        rgba(211, 47, 47, 0.05) 50%,
        rgba(239, 71, 111, 0.08) 100%
    );
    background-size: 200% 200%;
    background-position: 100% 50%;
}

.staff-card:hover {
    background: linear-gradient(
        135deg,
        rgba(31, 111, 235, 0.08) 0%,
        rgba(88, 166, 255, 0.05) 50%,
        rgba(31, 111, 235, 0.08) 100%
    );
    background-size: 200% 200%;
    background-position: 100% 50%;
}

/* Ripple Effect on Click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.cheater-card:active::before,
.staff-card:active::before {
    animation: ripple 0.6s ease-out;
}

/* Perspective Transform on Hover */
.cheater-grid,
.staff-grid {
    perspective: 1000px;
}

.cheater-card,
.staff-card {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cheater-card:hover {
    transform: translateY(-12px) rotateX(5deg);
}

.staff-card:hover {
    transform: translateY(-12px) rotateX(-5deg);
}

/* Glass Morphism Effect */
.cheater-card,
.staff-card,
.navbar {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Gradient Border Animation */
@keyframes rotateBorder {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.cheater-card:hover,
.staff-card:hover {
    animation: rotateBorder 3s linear infinite;
}

/* Enhanced Loading Spinner */
.spinner {
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 40%,
        rgba(31, 111, 235, 0.1) 50%,
        transparent 60%
    );
    animation: spin 2s linear infinite reverse;
}

/* Scroll-based Parallax Sections */
.cheaterlist-section,
.stafflist-section {
    position: relative;
    overflow: hidden;
}

.cheaterlist-section::before,
.stafflist-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(31, 111, 235, 0.03) 0%,
        transparent 50%
    );
    animation: rotate360 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hover Glow Intensity */
.modality-badge:hover {
    box-shadow: 
        0 0 10px rgba(31, 111, 235, 0.3),
        0 0 20px rgba(31, 111, 235, 0.2),
        0 0 30px rgba(31, 111, 235, 0.1);
}

/* ================================== */
/*   MODALES FULLSCREEN               */
/* ================================== */

.modal-fullscreen {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-fullscreen.active {
    opacity: 1;
}

.modal-content-large {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    margin: 2rem auto;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(31, 111, 235, 0.2);
    border: 1px solid var(--border-primary);
}

.modal-fullscreen.active .modal-content-large {
    transform: translateY(0);
    opacity: 1;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-primary);
}

.modal-title-custom {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

.modal-subtitle-custom {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.modal-close-custom {
    background: transparent;
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close-custom:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.5);
}

/* ================================== */
/*   ANIMACIONES MEJORADAS            */
/* ================================== */

/* Animación de pulso para elementos importantes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Animación de rebote */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animación de sacudida */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Animación de rotación suave */
@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Animación de zoom */
@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplicar animaciones a elementos */
.cheater-card,
.staff-card {
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cheater-modality-title,
.staff-rank-title {
    animation: slideInLeft 0.6s ease-out forwards;
}

.modality-badge {
    /* Animación bounce removida - ícono estático */
    transition: transform 0.3s ease;
}

.modality-badge:hover {
    transform: scale(1.1);
    animation: pulse 0.5s ease infinite;
}

/* Hover con efecto de neón */
.cheater-card:hover,
.staff-card:hover {
    box-shadow: 
        0 0 20px rgba(31, 111, 235, 0.4),
        0 0 40px rgba(31, 111, 235, 0.3),
        0 0 60px rgba(31, 111, 235, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Animación de escribir para títulos */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Efecto de onda en hover */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

.nav-link:hover {
    animation: wave 0.5s ease;
}

/* Partículas flotantes en fondo */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(5px);
    }
}

#particle-container::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(31, 111, 235, 0.1), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

/* Efecto de destello */
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.loading-indicator {
    animation: flash 1.5s ease-in-out infinite;
}

/* Animación de aparición escalonada más dramática */
/* ELIMINADOS: animation-delay causaba desaparición de cards */

/* Todos los brillos de bordes y texto eliminados - minimalismo puro */

/* ========================================
   🎨 NUEVAS ANIMACIONES ELEGANTES Y FRESCAS
   ======================================== */

/* Animación de entrada suave para las cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de brillo sutil para badges */
@keyframes shimmerBadge {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* Animación de glow pulsante */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(31, 111, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(31, 111, 235, 0.6), 0 0 40px rgba(31, 111, 235, 0.3);
    }
}

/* Animación de float suave */
@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Animación de rotación sutil */
@keyframes rotateSubtle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de slide con fade lateral */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de expansión elegante */
@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Efecto de "breathing" sutil */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

/* Animación de aparición de texto letra por letra (simulada) */
@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Efecto de onda para botones */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ANIMACIONES DESHABILITADAS - Causaban que las cards desaparecieran */

/* Cards SIN animación para máxima estabilidad */
.staff-card,
.cheater-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.cheater-card:nth-child(1) { animation-delay: 0.05s; }
.cheater-card:nth-child(2) { animation-delay: 0.1s; }
.cheater-card:nth-child(3) { animation-delay: 0.15s; }
.cheater-card:nth-child(4) { animation-delay: 0.2s; }
.cheater-card:nth-child(5) { animation-delay: 0.25s; }
.cheater-card:nth-child(6) { animation-delay: 0.3s; }

/* Badges con efecto shimmer al hover */
.rank-badge,
.modality-badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-badge:hover,
.modality-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
}

.rank-badge::after,
.modality-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent
    );
    transition: left 0.5s ease;
}

.rank-badge:hover::after,
.modality-badge:hover::after {
    left: 100%;
}

/* Títulos de sección con slide elegante */
.staff-rank-title,
.cheater-modality-title {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Player cards con hover suave */
.player-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(31, 111, 235, 0.25),
        0 0 0 1px rgba(31, 111, 235, 0.1);
}

/* Avatares con scale elegante al hover (SIN rotación) */
.staff-avatar,
.cheater-avatar {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.staff-card:hover .staff-avatar,
.cheater-card:hover .cheater-avatar {
    transform: scale(1.15);
}

/* Pills/Tabs con efecto de onda */
.pill {
    position: relative;
    overflow: hidden;
}

.pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pill:hover::before {
    width: 300px;
    height: 300px;
}

/* Iconos con float suave */
.modality-icon {
    animation: floatGentle 3s ease-in-out infinite;
}

.modality-icon:nth-child(odd) {
    animation-delay: 0.5s;
}

/* Stats counters con entrada desde abajo */
.stat-number {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Botones con efecto de expansión */
button,
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button::before,
.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

button:hover::before,
.btn:hover::before {
    height: 100%;
}

/* Scrollbar personalizada con animación */
::-webkit-scrollbar-thumb {
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1F6FEB, #58A6FF);
}

/* ========================================
   ✨ NUEVAS ANIMACIONES LINDAS Y ELEGANTES
   ======================================== */

/* Efecto de onda suave al cargar cards */
@keyframes waveIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Entrada desde abajo con rebote */
@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    60% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aparición con zoom elegante */
@keyframes zoomInFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Entrada desde los lados */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brillo sutil que recorre el borde */
@keyframes borderShine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Pulsación suave de sombra */
@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(31, 111, 235, 0.15);
    }
    50% {
        box-shadow: 0 8px 30px rgba(31, 111, 235, 0.35);
    }
}

/* Efecto de levitación suave */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Gradiente animado en texto */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Partículas flotantes elegantes */
@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) translateX(-10px);
        opacity: 0;
    }
}

/* Hover con efecto de elevación 3D */
@keyframes lift3D {
    to {
        transform: translateY(-8px) perspective(1000px) rotateX(2deg);
        box-shadow: 
            0 20px 40px rgba(31, 111, 235, 0.25),
            0 0 0 1px rgba(31, 111, 235, 0.1);
    }
}

/* APLICAR ANIMACIONES A ELEMENTOS */

/* Cards con entrada elegante */
.staff-card,
.cheater-card {
    animation: waveIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* Hover con elevación 3D sutil */
.staff-card:hover,
.cheater-card:hover {
    animation: lift3D 0.3s ease-out forwards, shadowPulse 2s ease-in-out infinite;
}

/* Pills con gradiente animado */
.pill.active {
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.15), rgba(88, 166, 255, 0.15));
    background-size: 200% 200%;
    animation: gradientText 3s ease infinite;
}

/* Badges con brillo en hover */
.badge:hover {
    position: relative;
    overflow: hidden;
}

.badge:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 100%;
    animation: borderShine 1.5s ease-in-out;
}

/* Nombres de staff/cheater con efecto de brillo */
.staff-name,
.cheater-name {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.staff-card:hover .staff-name,
.cheater-card:hover .cheater-name {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(31, 111, 235, 0.5);
    transform: translateX(3px);
}

/* SearchBox con efecto elegante en focus */
#searchBox:focus {
    box-shadow: 
        0 0 0 3px rgba(31, 111, 235, 0.2),
        0 10px 30px rgba(31, 111, 235, 0.15);
    transform: scale(1.02);
}

/* Region filters con transición suave */
.region-filters .badge {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.region-filters .badge.active {
    transform: scale(1.1);
    animation: gentleFloat 2s ease-in-out infinite;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cheater-card:hover,
    .staff-card:hover {
        transform: none;
        animation: none;
    }
}
