:root {
    --bg-color: #030303;
    --bg-secondary: #0a0b0e;
    --accent-primary: #ffffff;
    --accent-blue: #0055ff;
    --accent-blue-hover: #3377ff;
    --accent-cyan: #22d3ee;          /* Acento secundario para hover/CTAs (reemplaza el naranja que no pegaba) */
    --accent-cyan-soft: rgba(34, 211, 238, 0.18);
    /* aliases viejos por compatibilidad */
    --accent-orange: #22d3ee;
    --accent-orange-soft: rgba(34, 211, 238, 0.18);
    --text-main: #f0f0f0;
    --text-muted: #7a828f;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 85, 255, 0.4);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SMOOTH SCROLL global (mejora 14) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* compensa el navbar fijo al saltar a anchors */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: clip; /* clip en vez de hidden — no rompe position:fixed */
    background-image: radial-gradient(circle at 50% 0%, #0a0b0e 0%, #030303 70%);
    position: relative;
}

/* GRID ANIMADO DE FONDO (mejora 1) — solo en la landing, no en el dashboard */
#landing-view::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridDrift 30s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@keyframes gridDrift {
    0%   { background-position:  0   0; }
    100% { background-position: 60px 60px; }
}

#landing-view > *:not(.navbar-cs2) {
    position: relative;
    z-index: 1;
}

/* GLOW SUTIL EN HEADINGS GRANDES de la landing (solo apply y heading, no el hero H1) */
#landing-view .apply-title-glow,
#landing-view .heading-font {
    text-shadow: 0 0 28px rgba(0, 85, 255, 0.18), 0 0 60px rgba(0, 85, 255, 0.08);
}

#landing-view .hero h1 {
    text-shadow: none; /* cada span maneja su propio glow */
}

/* HOVER con acento cyan en CTAs principales (mejora 17) — pega mejor con el azul */
#landing-view .btn-primary:hover,
#landing-view .nav-btn-solid:hover {
    background: var(--accent-cyan) !important;
    box-shadow: 0 0 24px var(--accent-cyan-soft);
    border-color: var(--accent-cyan) !important;
    color: #0a0b0e !important;
}

#landing-view .btn-outline:hover,
#landing-view .nav-btn-outline:hover {
    color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 18px var(--accent-cyan-soft);
}

#landing-view .nav-links-cs2 a:hover {
    color: var(--accent-cyan) !important;
}

/* Botón "¿Por qué hago esto?" en el hero — recuadro naranja */
.btn-why-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #fbbf24;
    text-decoration: none;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.25s ease;
    padding: 10px 22px;
    background: rgba(245, 158, 11, 0.08);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    border-radius: 7px;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.18), inset 0 0 12px rgba(245, 158, 11, 0.05);
}
.btn-why-link:hover {
    color: #1a1d23;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: #fbbf24;
    gap: 13px;
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45), 0 0 0 1px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* ─── Por qué hago esto ──────────────────────────────────────────────────── */
.why-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.why-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -1.5px;
    line-height: 1.04;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 750px;
    text-transform: uppercase;
}

.why-lead {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.85;
    letter-spacing: 0.3px;
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.why-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent-blue);
    padding: 32px 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
    border-color: rgba(0, 85, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 85, 255, 0.07);
}

.why-card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.75;
    text-transform: uppercase;
}

.why-card h3 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.3px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.why-card p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.why-quote {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 10px;
}

.why-quote-bar {
    width: 40px;
    height: 2px;
    background: var(--accent-blue);
    opacity: 0.5;
}

.why-quote p {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: -0.5px;
    line-height: 1.4;
    font-style: italic;
}

.why-quote span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .why-cards { grid-template-columns: 1fr; }
    .why-title { font-size: 2rem; }
}

/* ─── FAQ ACORDEÓN (mejora 8) ────────────────────────────────────────────── */
.faq-section {
    padding: 100px 0;
    position: relative;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-overline {
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: 'Roboto Mono', monospace;
}

.faq-header h2 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 2.6rem;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.faq-header h2 span {
    color: var(--accent-blue);
    text-shadow: 0 0 30px rgba(0, 85, 255, 0.4);
}

.faq-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(0, 85, 255, 0.2);
}

.faq-item.open {
    border-color: rgba(0, 85, 255, 0.35);
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.04), rgba(0, 85, 255, 0.01));
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-q:hover {
    color: var(--accent-orange);
}

.faq-q i {
    font-size: 0.85rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
    color: var(--accent-orange);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 22px 20px;
}

.faq-a p {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, .heading-font {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mono {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* --- Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 0 15px rgba(0, 85, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-highlight);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background-color: rgba(0, 85, 255, 0.05);
    color: var(--accent-blue);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    color: var(--accent-primary);
}

/* --- Navbar --- */
nav {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-links li a:hover {
    color: var(--accent-blue);
}

.nav-contact {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-contact:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 85, 255, 0.05);
    color: var(--accent-blue);
}

/* --- Hero Section --- */
.hero {
    padding: 130px 0 70px;
    text-align: center;
}

/* El container del hero tiene más ancho para reducir margen en los costados */
.hero .container {
    max-width: 1320px;
    padding: 0 30px;
}

.hero-overline {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-blue);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-overline::before, .hero-overline::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent-blue);
}

/* ── Hero H1 estilo cs2.cam — apilado por líneas, bold, Inter Tight ─────── */
.hero h1 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 4.4rem;
    max-width: 1050px;
    margin: 0 auto 28px;
    line-height: 1.08;
    color: var(--accent-primary);
    letter-spacing: -2.5px;
    font-weight: 800;
    text-transform: uppercase;
}

/* "TE LLEVO A" — blanco completo, mismo tamaño que el resto */
.hero h1 .h1-intro {
    display: block;
}

/* Claim principal — FACEIT LEVEL 10: rojo, brillante */
.hero h1 .hl-red {
    display: block;
    color: #ef4444;
    text-shadow:
        0 0 30px rgba(239, 68, 68, 0.65),
        0 0 80px rgba(239, 68, 68, 0.30),
        0 0 140px rgba(239, 68, 68, 0.12);
}

/* "100% GARANTIZADO" — blanco limpio, sin fluor azul */
.hero h1 .hl-white-glow {
    display: block;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
}

/* "SI HACÉS EL TRABAJO" — blanco completo, mismo tamaño que el resto */
.hero h1 .h1-condition {
    display: block;
}

.hero p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 38px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 80px;
}

/* --- Video Box --- */
.video-container {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--border-highlight);
    position: relative;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: 5px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 30px rgba(0, 85, 255, 0.08);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #020202;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--border-highlight);
    margin-bottom: 15px;
    z-index: 1;
}

.error-msg {
    text-align: center;
    color: var(--text-muted);
    max-width: 300px;
    z-index: 1;
    font-family: 'Roboto Mono', monospace;
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-top: none;
}

.stat-item {
    background: rgba(10, 11, 14, 0.8);
    padding: 20px 25px;
    text-align: left;
    backdrop-filter: blur(4px);
}

.stat-label {
    font-size: 0.65rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* --- Apply Section --- */
.apply-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.apply-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.status-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.tag {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    font-size: 0.65rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tag.active {
    background: rgba(0, 85, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.instagram-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    padding: 15px 25px;
    margin: 40px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-main);
}

.instagram-banner:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 85, 255, 0.05);
    color: var(--accent-blue);
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.comm-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    transition: var(--transition);
}

.comm-link:hover {
    color: var(--accent-blue);
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 2px;
}

.feature-item i {
    color: var(--accent-blue);
    margin-top: 3px;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.testimonial-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.testimonial-card {
    border: 1px solid var(--border-color);
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 2px;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--accent-primary);
}

.user-rank {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
}

.audio-player {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    border-radius: 2px;
}

.play-btn {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    background: var(--accent-blue-hover);
}

.progress-bar {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color);
    position: relative;
}

.progress {
    width: 30%;
    height: 100%;
    background: var(--accent-blue);
}

.testimonial-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.social-icons a:hover {
    color: var(--accent-blue);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.close-modal:hover {
    color: var(--accent-blue);
}

.modal-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--text-main);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    border-radius: 2px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #080a0e;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    font-size: 0.75rem;
}

/* --- Dashboard View --- */
#dashboard-view {
    display: none;
    height: 100vh;
    grid-template-columns: 240px 1fr;
    background: var(--bg-color);
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;                            /* Firefox: fina */
    scrollbar-color: rgba(255,255,255,0.08) transparent; /* Firefox: color */
}

/* Scrollbar chico y discreto en Chrome/Edge/Safari (no se solapa con contenido) */
.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

.sidebar-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.side-nav li {
    margin-bottom: 2px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 11px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.side-nav a i {
    font-size: 0.78rem;
    width: 16px;
    text-align: center;
}

.side-nav a:hover, .side-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
    border-left: 2px solid var(--accent-blue);
}

/* Mi Entrenamiento — color morado, no azul. Override de hover/active */
.side-nav a.my-training-link,
.side-nav a.my-training-link:hover,
.side-nav a.my-training-link.active {
    color: #a855f7 !important;
    border-left-color: #a855f7 !important;
}
.side-nav a.my-training-link:hover {
    background: rgba(168, 85, 247, 0.08) !important;
}
.side-nav a.my-training-link.active {
    background: rgba(168, 85, 247, 0.12) !important;
}

.main-dashboard {
    padding: 40px 50px;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dash-title h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-primary);
}

.dash-title p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dash-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.card-header h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 0.65rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    background: var(--bg-secondary);
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    background: var(--bg-color);
}

tr:last-child td {
    border-bottom: none;
}

.status-pill {
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    border: 1px solid;
    display: inline-block;
}

.status-paid { 
    border-color: #00ff66; 
    color: #00ff66;
    background: rgba(0, 255, 102, 0.1);
}
.status-pending { 
    border-color: #ffcc00; 
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
}
.status-active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(0, 85, 255, 0.1);
}

/* --- Dynamic Dashboard Additions --- */
.student-row {
    cursor: pointer;
    transition: var(--transition);
}

.student-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--accent-primary);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.profile-name {
    font-size: 2rem;
    color: var(--accent-primary);
}

.profile-rank {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.class-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.class-item:last-child {
    border-bottom: none;
}

.class-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.list-styled {
    margin-left: 20px;
    list-style-type: square;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.list-styled li {
    margin-bottom: 5px;
}

.task-list {
    margin-top: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
    font-size: 0.85rem;
    border-radius: 2px;
}

.task-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.task-status.completed { background: #00ff66; box-shadow: 0 0 5px #00ff66; }
.task-status.pending { background: #ffcc00; box-shadow: 0 0 5px #ffcc00; }
.task-status.in-progress { background: var(--accent-blue); box-shadow: 0 0 5px var(--accent-blue); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile + Tablet
   El sidebar se vuelve drawer con hamburger en mobile
   ═══════════════════════════════════════════════════════════════════ */

/* Hamburger button (oculto en desktop) */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #15171b;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 1.15rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Backdrop cuando el drawer está abierto */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 997;
}

/* TABLET — hasta 1024px */
@media (max-width: 1024px) {
    #dashboard-view { grid-template-columns: 200px 1fr; }
    .sidebar { padding: 18px 12px; }
    .main-dashboard { padding: 24px 20px; }
}

/* MOBILE — hasta 768px */
@media (max-width: 768px) {
    /* LANDING */
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .testimonial-cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    /* NAVBAR CS2 — ocultar links de nav y botón de contacto en mobile */
    .nav-links-cs2 { display: none !important; }
    .nav-btn-contact { display: none !important; }
    .navbar-cs2 .container { padding: 0 12px; gap: 8px; }
    .nav-right { gap: 6px !important; }
    .nav-right button,
    .nav-right .nav-btn-solid,
    .nav-right .nav-btn-outline {
        font-size: 0.62rem !important;
        padding: 6px 10px !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    /* DASHBOARD: sidebar pasa a drawer */
    #dashboard-view {
        grid-template-columns: 1fr;
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 998;
        padding: 60px 14px 16px; /* extra top para no chocar con hamburger */
        transition: left 0.28s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    .sidebar.open { left: 0; }
    .sidebar-backdrop.show { display: block; }
    .mobile-menu-btn { display: flex; }

    .main-dashboard {
        padding: 60px 14px 20px !important; /* dejar espacio para hamburger arriba */
    }

    /* Forzar 1 columna en grids principales del dashboard */
    .students-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tablas: scroll horizontal */
    table {
        font-size: 0.78rem !important;
    }
    .main-dashboard > div > div > div[style*="overflow"] {
        overflow-x: auto;
    }

    /* Modales: full width con margen */
    .modal-overlay > div,
    .custom-modal,
    div[id$="-overlay"] > div {
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    /* Tipografías más chicas — solo en dashboard, no tocar hero de landing */
    #dashboard-view h1, #dashboard-view h2 { font-size: 1.3rem !important; }
    #dashboard-view h3 { font-size: 1rem !important; }

    /* Botones más grandes para tap (40px+ alto) */
    .btn, button[type="submit"] {
        min-height: 42px;
        padding: 10px 16px !important;
    }
}

/* MOBILE chico — hasta 480px (celulares pequeños) */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .main-dashboard { padding: 60px 10px 16px !important; }
    #dashboard-view h1, #dashboard-view h2 { font-size: 1.15rem !important; }

    /* KPI cards más compactos */
    .main-dashboard > div > div[style*="grid-template-columns"] {
        gap: 8px !important;
    }
}
/* Toggle texto desktop vs mobile en botones del navbar */
.nav-text-full { display: inline; }
.nav-text-short { display: none; }
@media (max-width: 768px) {
    .nav-text-full { display: none; }
    .nav-text-short { display: inline; }
}

/* --- Navbar CS2 Style --- */
.navbar-cs2 {
  height: 60px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(15, 16, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.navbar-cs2 .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
}

.navbar-cs2 .logo {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links-cs2 {
  display: flex;
  gap: 20px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: #8c8c8c;
  letter-spacing: 2px;
}

.nav-links-cs2 a {
  transition: color 0.2s ease;
}

.nav-links-cs2 a:hover {
  color: #ffffff;
}

.nav-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn-solid {
  background: #c3b482;
  border: none;
  color: #000000;
  padding: 9px 20px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-btn-solid:hover {
  background: #d6c692;
}

/* --- Apply Section CS2 Style --- */
.apply-title-glow {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  color: var(--accent-primary);
  font-size: 3rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  font-weight: 800;
  line-height: 1.05;
}

.apply-title-glow span {
  color: var(--accent-blue);
  text-shadow: 0 0 22px rgba(0, 85, 255, 0.55), 0 0 50px rgba(0, 85, 255, 0.25);
}

.apply-subtitle {
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 500;
}

.status-boxes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.status-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #8c8c8c;
  text-transform: uppercase;
  position: relative;
  min-width: 180px;
  flex: 1;
}

.status-box::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  border-top: 1px solid #0055ff;
  border-left: 1px solid #0055ff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-box:hover::before {
  opacity: 1;
}

.status-box.active {
  color: #ff3333;
  border-color: rgba(255, 51, 51, 0.3);
  font-weight: 700;
}

.apply-card {
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.apply-card:hover {
  border-color: rgba(0, 85, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 85, 255, 0.1);
}

.apply-card-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.apply-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.apply-card-text {
  text-align: left;
}

.apply-card-text h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apply-card-text h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #0055ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #0055ff;
}

.apply-card-text p {
  color: #8c8c8c;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.apply-card-btn {
  background: rgba(0, 85, 255, 0.1);
  border: 1px solid #0055ff;
  color: #0055ff;
  padding: 12px 25px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.apply-card-btn:hover {
  background: #0055ff;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 85, 255, 0.4);
}

.apply-community {
  display: flex;
  gap: 15px;
}

.community-box {
  flex: 1;
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #8c8c8c;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.community-box:hover {
  border-color: var(--accent-blue);
  color: white;
}

.community-box i {
  font-size: 1.5rem;
  color: var(--accent-blue);
}

/* --- Smooth Scrolling --- */
html {
  scroll-behavior: smooth;
}

/* --- New Sci-Fi Box --- */
.sci-fi-box {
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}
.sci-fi-box::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 15px; height: 15px;
  border-top: 1px solid #0055ff;
  border-left: 1px solid #0055ff;
}
.sci-fi-box::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 15px; height: 15px;
  border-bottom: 1px solid #0055ff;
  border-right: 1px solid #0055ff;
}
.sci-fi-box:hover {
  border-color: rgba(0, 85, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 85, 255, 0.05);
}

.nav-btn-contact {
  background: transparent;
  border: 1px solid rgba(0, 85, 255, 0.35);
  color: rgba(100, 160, 255, 0.85);
  padding: 7px 13px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-btn-contact:hover {
  background: rgba(0, 85, 255, 0.1);
  border-color: rgba(0, 85, 255, 0.6);
  color: #ffffff;
}

.nav-btn-solid.white {
  background: #ffffff;
  color: #000000;
}
.nav-btn-solid.white:hover {
  background: #e5e5e5;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .includes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- New Table Aesthetics --- */
.dash-card table {
    border-spacing: 0 8px;
    border-collapse: separate;
}

.dash-card th {
    background: transparent;
    padding: 10px 20px;
    color: #4b5563; /* Slate 600 */
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.dash-card tr td {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 18px 20px;
}

.dash-card tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px 0 0 4px;
}

.dash-card tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0 4px 4px 0;
}

.dash-card tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-nav a {
    margin-bottom: 8px;
    padding: 14px 15px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.side-nav a.active {
    background: rgba(0, 85, 255, 0.1) !important;
    border-left: none !important;
    color: var(--accent-blue) !important;
}

.side-nav a i {
    font-size: 1rem;
}

.user-status-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- Student Cards Grid --- */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.student-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 85, 255, 0.2);
    transform: translateY(-2px);
}

.student-card:hover::before {
    opacity: 1;
}

.student-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(0, 85, 255, 0.3);
    margin-bottom: 15px;
    object-fit: cover;
}

.student-info h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.student-info p {
    color: #8c8c8c;
    font-size: 0.75rem;
    font-family: 'Roboto Mono', monospace;
}

/* --- AI Report Styles --- */
.report-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.report-section-title {
    font-size: 0.7rem;
    color: var(--accent-blue);
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section-title i {
    font-size: 0.8rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.report-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 4px;
}

.report-list {
    list-style: none;
    padding: 0;
}

.report-list li {
    font-size: 0.85rem;
    color: #e5e7eb;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.report-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.report-list.errors li::before {
    content: '×';
    color: #ff4444;
}

.report-list.positive li::before {
    content: '✓';
    color: #00ff66;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 85, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: white;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-family: 'Roboto Mono', monospace;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 10px;
}

.priority-1 { border-color: #ff4444; background: rgba(255, 68, 68, 0.1); }
.priority-2 { border-color: #ffcc00; background: rgba(255, 204, 0, 0.1); }
.priority-3 { border-color: #00ff66; background: rgba(0, 255, 102, 0.1); }

/* --- Sidebar Redesign (Based on Captura 180959) --- */
.sidebar {
    background: linear-gradient(180deg, #0a0b0e 0%, #07080a 100%);
    padding: 26px 14px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    width: 240px;
}

.sidebar-top {
    margin-bottom: 26px;
}

.sidebar-logo-container {
    padding: 0 6px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 18px;
}

.coach-management-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.coach-management-box label {
    font-size: 0.6rem;
    font-family: 'Roboto Mono', monospace;
    color: #8c8c8c;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav li {
    margin: 0;
    list-style: none;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    color: #7b8290;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    text-transform: none;
    letter-spacing: -0.1px;
    text-decoration: none;
    position: relative;
}

.side-nav a i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.side-nav a:hover i {
    color: #cbd5e1;
}

.side-nav a.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    color: white;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 22px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 13px; /* compensar el borde */
}

.side-nav a.active i {
    color: white;
    transform: scale(1.05);
}

/* Indicador lateral del item activo */
.side-nav a.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, #60a5fa, #0055ff);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(0,85,255,0.6);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.user-profile-small {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: border-color 0.2s ease;
}

.user-profile-small:hover {
    border-color: rgba(255,255,255,0.1);
}

.user-profile-small img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(0,85,255,0.3);
}

.user-profile-small .name {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.user-profile-small .action {
    font-size: 0.56rem !important;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s ease;
    font-weight: 600;
    letter-spacing: 0.3px !important;
}

.user-profile-small .action:hover {
    opacity: 0.8;
}

/* Online Counter Tooltip */
.online-counter-container {
    position: relative;
    display: inline-block;
    cursor: help;
}

.online-counter-container .tooltiptext {
    visibility: hidden;
    width: max-content;
    background-color: #0e1319;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    white-space: pre-wrap;
}

.online-counter-container:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.online-counter-container .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255,255,255,0.1) transparent transparent transparent;
}

/* --- Dashboard Redesign (Based on preview.webp) --- */
.dashboard-container {
    padding: 30px 40px;
}

.top-welcome-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.session-panel-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.panel-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.panel-title {
    font-size: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: #8c8c8c;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.btn-panel-action {
    background: white;
    color: black;
    border: none;
    padding: 6px 15px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    text-transform: uppercase;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    text-align: left;
    font-size: 0.6rem;
    color: #4b5563;
    padding: 10px 15px;
    text-transform: uppercase;
}

.custom-table td {
    padding: 15px;
    font-size: 0.8rem;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.status-confirmed { color: #00ff66; font-weight: 700; font-size: 0.65rem; }
.status-pending-text { color: #ffcc00; font-weight: 700; font-size: 0.65rem; }

.task-item-compact {
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.task-tag {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

/* --- Payments Table Styling --- */
.payments-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
}

.payments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.green-title {
    color: #00ff66;
    font-size: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* --- HUD Styled Select --- */
select {
    appearance: none;
    background: #0e1319;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 35px 10px 15px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: all 0.2s ease;
}

select:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group label {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #64748b;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    display: block;
}

/* --- Month Filter Buttons --- */
.month-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.month-filters::-webkit-scrollbar { height: 4px; }
.month-filters::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #8c8c8c;
    padding: 6px 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.filter-btn.active {
    border-color: var(--accent-blue);
    background: rgba(0, 85, 255, 0.05);
    color: var(--accent-blue);
}

/* --- Inline Status Select --- */
.status-select {
    padding: 4px 25px 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    border-width: 1px;
}

.status-realizada { border-color: #00ff66; color: #00ff66; background-color: rgba(0, 255, 102, 0.05); }
.status-pendiente { border-color: #ffcc00; color: #ffcc00; background-color: rgba(255, 204, 0, 0.05); }
.status-no-agendada { border-color: #64748b; color: #64748b; background-color: rgba(100, 116, 139, 0.05); }

/* --- Custom Dropdown and Badges --- */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 180px;
    text-align: right;
}
.custom-dropdown-selected {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: #0e1319;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    gap: 8px;
    transition: all 0.2s ease;
}
.custom-dropdown-selected:hover {
    border-color: rgba(255,255,255,0.2);
}
.custom-dropdown-options {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #0e1319;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 100;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
    text-align: left;
}
.custom-dropdown.open .custom-dropdown-options {
    display: block;
}
.dropdown-option {
    padding: 8px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Badges for status */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}
.badge-agendada, .badge-pagado { color: #00ff66; background: rgba(0, 255, 102, 0.15); }
.badge-pendiente { color: #ff9900; background: rgba(255, 153, 0, 0.15); }
.badge-no-agendada { color: #a1a1aa; background: rgba(161, 161, 170, 0.15); }
.badge-realizada { color: #0ea5e9; background: rgba(14, 165, 233, 0.15); }

.month-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 15px;
    letter-spacing: 1px;
    display: inline-block;
}

.month-1 { background: rgba(255, 68, 68, 0.15); border: 1px solid #ff4444; color: #ff4444; }
.month-2 { background: rgba(255, 153, 0, 0.15); border: 1px solid #ff9900; color: #ff9900; }
.month-3 { background: rgba(153, 51, 255, 0.15); border: 1px solid #9933ff; color: #9933ff; }

.dropdown-option.badge-agendada:hover { background: rgba(0, 255, 102, 0.25); }
.dropdown-option.badge-pendiente:hover { background: rgba(255, 153, 0, 0.25); }
.dropdown-option.badge-no-agendada:hover { background: rgba(161, 161, 170, 0.25); }
.dropdown-option.badge-realizada:hover { background: rgba(14, 165, 233, 0.25); }

/* --- Notion-style Profile Redesign --- */
.notion-grid-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.notion-nav-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notion-nav-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.notion-nav-card i {
    font-size: 1rem;
    color: var(--accent-blue);
}

.notion-nav-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
}

.notion-section-header {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.notion-gallery-card {
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.notion-gallery-card:hover {
    transform: translateY(-2px);
}

.notion-gallery-img {
    height: 120px;
    background: #25262b;
    width: 100%;
}

.notion-gallery-content {
    padding: 15px;
}

.notion-gallery-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notion-gallery-date {
    font-size: 0.65rem;
    color: #8c8c8c;
    margin-bottom: 10px;
}

.notion-table-container {
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.notion-table-tabs {
    display: flex;
    padding: 10px 15px;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notion-tab {
    font-size: 0.75rem;
    color: #8c8c8c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
}

.notion-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.notion-table {
    width: 100%;
    border-collapse: collapse;
}

.notion-table th {
    text-align: left;
    font-size: 0.65rem;
    color: #64748b;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: none;
    font-weight: 500;
}

.notion-table td {
    padding: 10px 15px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.notion-checkbox {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.notion-resource-group {
    margin-bottom: 30px;
}

.notion-resource-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
}

.notion-resource-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px 20px;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.notion-resource-item i {
    width: 16px;
    text-align: center;
}

.notion-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
}

.notion-tag-bienvenida { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.notion-tag-personalizados { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.notion-tag-mentalidad { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.notion-tag-sesiones { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.notion-tag-contenido { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notion-tag-demos { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.level-card {
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.level-number {
    background: var(--accent-blue);
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 800;
}

.level-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.level-subtitle {
    font-size: 0.65rem;
    color: #8c8c8c;
    text-transform: uppercase;
}

.info-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.info-table td {
    padding: 12px 15px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.info-label {
    color: #64748b;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    width: 150px;
}

/* --- Custom Notifications & Modals --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0a0b0e;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-left: 4px solid #ff4444;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    cursor: pointer;
    min-width: 300px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.15); }
}

.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-modal {
    background: #0a0b0e;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.custom-modal h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.custom-modal p {
    font-size: 0.9rem;
    color: #8c8c8c;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-modal-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-confirm { background: #ff4444; color: white; }
.modal-btn-cancel { background: #374151; color: white; }
.modal-btn-action { background: var(--accent-blue); color: white; }

/* --- Level Content Styling --- */
.level-detail-container {
    background: #1a1b1e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.level-description {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 25px;
    line-height: 1.6;
    padding-left: 15px;
    border-left: 2px solid var(--accent-blue);
}

.level-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.level-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #e5e7eb;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.level-check-item:hover {
    border-color: rgba(0,85,255,0.2);
    background: rgba(0,85,255,0.03);
}

.level-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
}

.active-notion {
    background: rgba(0, 85, 255, 0.1) !important;
    border-color: var(--accent-blue) !important;
}

.active-notion span {
    color: var(--accent-blue) !important;
}

.active-notion i {
    color: var(--accent-blue) !important;
}

.scroll-table-container {
    max-height: 350px;
    overflow-y: auto;
}

.scroll-table-container::-webkit-scrollbar { width: 6px; }
.scroll-table-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); border-radius: 3px; }
