/* ===== VARIABLES ===== */
:root {
    --bg: #0e0e12;
    --surface: #16161e;
    --surface2: #1e1e2a;
    --border: #2a2a3a;
    --accent: #c8f135;
    --accent2: #5b8cff;
    --text: #e8e8f0;
    --muted: #6b6b80;
    --red: #ff4f4f;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    color: var(--accent);
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    color: var(--text);
    font-size: 0.9rem;
}

/* ===== TARJETA ===== */
.wexp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* ===== FORMULARIOS ===== */
.wexp-label {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wexp-input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
}

.wexp-input:focus {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: none;
}

/* ===== BOTONES ===== */
.wexp-btn {
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    letter-spacing: 0.05em;
    font-weight: bold;
    border: none;
}

.wexp-btn:hover {
    background: #b8e020;
    color: #000;
}

.wexp-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.wexp-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== MENSAJES ===== */
.wexp-success {
    color: var(--accent);
    font-size: 0.85rem;
    text-align: center;
}

.wexp-error {
    color: var(--red);
    font-size: 0.85rem;
    text-align: center;
}

/* ===== TEXTOS AUXILIARES ===== */
.wexp-tagline {
    color: var(--muted);
    font-size: 0.8rem;
}

.wexp-link {
    color: var(--accent2);
}

/* ===== NAVBAR SUPERIOR ===== */
.wexp-topbar {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.wexp-topbar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.wexp-topbar-grupo {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ===== TARJETA DE PUNTOS ===== */
.wexp-points-card {
    background: linear-gradient(135deg, #1a2a0a, #0e1a05);
    border: 1px solid var(--accent);
    border-radius: 12px;
}

.wexp-points-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
}

.wexp-points-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wexp-rank-badge {
    background: var(--accent);
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    padding: 8px 16px;
    border-radius: 8px;
}

/* ===== RANKING ===== */
.wexp-ranking-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
}

.wexp-ranking-item.es-yo {
    border-color: var(--accent2);
}

.wexp-ranking-pos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--muted);
    min-width: 24px;
}

.wexp-ranking-nombre {
    font-size: 0.9rem;
    font-weight: 500;
}

.wexp-ranking-barra-wrap {
    background: var(--surface2);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.wexp-ranking-barra {
    height: 100%;
    border-radius: 4px;
    background: var(--muted);
}

.wexp-ranking-barra.es-yo {
    background: var(--accent2);
}

.wexp-ranking-pts {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--text);
    min-width: 40px;
    text-align: right;
}

/* ===== SECCIÓN TÍTULOS ===== */
.wexp-section-title {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===== FAB BOTÓN + ===== */
.wexp-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 241, 53, 0.3);
    z-index: 100;
}

.wexp-fab:hover {
    background: #b8e020;
}

/* ===== MODAL REGISTRAR HITO ===== */
.wexp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
}

.wexp-modal-overlay.active {
    display: flex;
}

.wexp-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
}

/* ===== NAVBAR INFERIOR ===== */
.wexp-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.wexp-navbar a {
    font-size: 0.65rem;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wexp-navbar a.active {
    color: var(--accent);
}

/* ===== PERFIL ===== */
.wexp-perfil-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--accent);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--accent);
}

.wexp-historial-item {
    background: var(--surface2);
    border-radius: 8px;
}

/* ===== STATS ===== */
.wexp-champion-card {
    background: var(--surface2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.wexp-champion-icon {
    font-size: 1.5rem;
}
