/* ========== CONFIGURACIÓN WHITE LABEL ========== */
:root {
    /* Colores personalizables por cliente */
    --brand-primary: #006B3F;
    --brand-secondary: #D4AF37;
    --brand-accent: #FFFFFF;
    --brand-dark: #004D2C;
    
    /* Colores del Cliente Sponsor (dinámicos) */
    --client-primary: #E67E22;
    --client-secondary: #F39C12;
    --client-dark: #D35400;
    
    /* Colores del sistema */
    --bg-main: #F5F5F5;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --success: #22c55e;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Tipografía */
    --font-display: 'Rubik', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ========== SPLASH SCREEN ========== */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 2.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.splash-logo {
    width: 220px;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.splash-title {
    margin-top: 30px;
    font-family: var(--font-display);
    font-size: 32px;
    color: white;
    letter-spacing: 2px;
    animation: slideUp 0.8s ease-out 0.3s both;
}

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

.splash-loader {
    margin-top: 40px;
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    animation: slideUp 0.8s ease-out 0.5s both;
}

.splash-loader-bar {
    height: 100%;
    background: var(--brand-secondary);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* ========== LOGIN/REGISTRO ========== */
#loginScreen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
}

.login-container {
    max-width: 420px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

/* ========== LOGO WHITE LABEL - DESHABILITADO (ahora el logo está en el header) ========== */
/*
.brand-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--brand-primary);
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 1000;
    font-weight: bold;
}
*/

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--bg-main);
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--brand-primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--bg-main);
    background: white;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.social-btn i {
    font-size: 18px;
}

.social-btn.google i {
    color: #DB4437;
}

.social-btn.facebook i {
    color: #1877F2;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg-main);
}

.divider span {
    padding: 0 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--bg-main);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Estilos para mostrar/ocultar contraseña */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--brand-primary);
}

.password-toggle i {
    pointer-events: none;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 107, 63, 0.3);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ========== MENÚ PRINCIPAL ========== */
#mainMenu {
    display: none;
    min-height: 100vh;
    background: var(--brand-primary);
}

#mainMenu .main-content {
    background: transparent;
}

#mainMenu .footer {
    background: var(--brand-dark);
}

/* ========== HEADER - NUEVO LAYOUT ========== */
/* Desktop: [☰ Menú] [FIEBRE MUNDIALISTA] [Logo] */
/* Móvil: Fila 1: [☰ Menú] [Logo] | Fila 2: [FIEBRE MUNDIALISTA] */

.header {
    background: var(--brand-primary);
    padding: 8px 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 999;
    gap: 10px;
    min-height: 62px;
}

/* Botón de menú - IZQUIERDA */
.menu-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}

.menu-btn i {
    pointer-events: none;
}

/* Contenido central - LOGO EL GOLEADOR */
.header-content {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    order: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo imagen */
.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.promo-name {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.promo-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 2px;
}

/* Botón de notificaciones - DERECHA */
.header .brand-logo,
.header img.brand-logo {
    display: none;
}

.notif-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notif-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}

.notif-btn i {
    pointer-events: none;
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--brand-primary);
    pointer-events: none;
    line-height: 1;
}

/* Fila adicional móvil - OCULTA (ya no se necesita) */
.header-mobile-title {
    display: none !important;
}

/* ========== RESPONSIVE - MÓVIL ========== */
@media (max-width: 768px) {
    .header {
        padding: 7px 14px;
        gap: 8px;
        min-height: 56px;
    }
    
    .menu-btn {
        order: 1;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .brand-logo-img {
        height: 38px;
        max-width: 190px;
    }

    .promo-name {
        font-size: 28px;
    }
    
    .notif-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    /* Ocultar título principal en móvil - ya visible en fila 1 */
    .header-content {
        display: flex;
    }
}
/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 13px;
    opacity: 0.9;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-main);
    color: var(--brand-primary);
}

.nav-item i {
    width: 24px;
    font-size: 18px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.menu-buttons {
    display: none; /* reemplazado por home-sections */
}

/* ═══════════════════════════════════════════
   HOME — NUEVO LAYOUT CON ICONOS WEBP
   ═══════════════════════════════════════════ */
.home-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.home-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 16px 0 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
}

/* ── SEPARADOR MUNDIAL 2026 ─────────────────────────────── */
.home-sep-mundial {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
}

.home-sep-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--brand-secondary), transparent);
}

.home-sep-line--dim {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.home-sep-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-secondary);
    color: #1a1a1a;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(212,175,55,0.5);
}

.home-sep-ball {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: none;
    pointer-events: none;
}

/* ── SEPARADOR OTROS TORNEOS ────────────────────────────── */
.home-sep-otros {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 12px;
}

.home-sep-otros-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* Carrusel otros torneos — iconos ligeramente más pequeños */
.home-carousel--otros {
    opacity: 0.88;
}

.home-ico--otros img {
    max-width: 76px !important;
}

.home-ico--otros span {
    font-size: 10px;
    color: rgba(255,255,255,0.85);
}

/* Fila de 4 iconos */
.home-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-row-3 { gap: 10px; }

/* ── CARRUSEL "LISTO PARA JUGAR" ───────────────────────── */
.home-carousel-outer {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
}

.home-carousel-wrap {
    flex: 1;
    overflow: hidden;
    width: 100%;
    padding-bottom: 4px;
}

.carousel-arrow {
    flex-shrink: 0;
    background: rgba(0,0,0,0.25);
    border: none;
    color: white;
    font-size: 26px;
    line-height: 1;
    width: 28px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-arrow:active {
    background: rgba(0,0,0,0.55);
}

.home-carousel {
    display: flex;
    gap: 0;
    will-change: transform;
    /* transition se maneja desde JS */
}

.home-carousel .home-ico {
    flex: 0 0 33.333%;
    width: 33.333%;
    min-width: 33.333%;
    max-width: 33.333%;
    padding: 0 6px;
    box-sizing: border-box;
    align-items: center;
}

.home-carousel .home-ico img {
    width: 100%;
    max-width: 88px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.home-carousel .home-ico span {
    font-size: 10px;
}

/* Puntos indicadores */
.home-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.home-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.home-carousel-dot.active {
    background: var(--brand-secondary);
    transform: scale(1.3);
}

/* Cada icono */
.home-ico {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.2s ease;
    flex: 1;
    max-width: 90px;
}

.home-ico:active {
    transform: scale(0.92);
}

.home-ico img {
    width: 100%;
    max-width: 80px;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.home-ico:hover img {
    transform: translateY(-4px) scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.home-ico span {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.2px;
}

/* Tamaño unificado para ambas filas de 3 */
.home-row-3 .home-ico {
    max-width: 105px;
}
.home-row-3 .home-ico img {
    max-width: 88px;
}
.home-row-3 .home-ico span {
    font-size: 11px;
}

/* ---- Animaciones ---- */
@keyframes mc-enter {
    from { opacity: 0; transform: translateY(28px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

@keyframes mc-float {
    0%, 100% { transform: translateY(0px);  }
    50%      { transform: translateY(-7px); }
}

@keyframes mc-shine {
    0%   { left: -80%; opacity: 0;   }
    15%  { opacity: 1;               }
    85%  { opacity: 1;               }
    100% { left: 130%; opacity: 0;   }
}

@keyframes mc-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.45); }
    70%  { box-shadow: 0 0 0 13px rgba(255,255,255,0);   }
    100% { box-shadow: 0 0 0 0   rgba(255,255,255,0);    }
}

/* ---- Tarjetas cuadradas ---- */
.menu-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid #1c4f12;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    animation: mc-enter 0.5s ease both;
}

/* Colores individuales - todos dorado con variaciones de ángulo */
.menu-card:nth-child(1) {
    background: linear-gradient(145deg, #E8C440 0%, #9A7205 100%);
    box-shadow: 0 8px 26px rgba(180,140,10,0.5);
    animation-delay: 0.05s;
}
.menu-card:nth-child(2) {
    background: linear-gradient(225deg, #D4AF37 0%, #7A5E00 100%);
    box-shadow: 0 8px 26px rgba(180,140,10,0.5);
    animation-delay: 0.15s;
}
.menu-card:nth-child(3) {
    background: linear-gradient(135deg, #F0CC50 0%, #8B6905 100%);
    box-shadow: 0 8px 26px rgba(180,140,10,0.5);
    animation-delay: 0.25s;
}
.menu-card:nth-child(4) {
    background: linear-gradient(170deg, #C9A227 0%, #6B4E00 100%);
    box-shadow: 0 8px 26px rgba(180,140,10,0.5);
    animation-delay: 0.35s;
}

/* Barrido de brillo */
.menu-card::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -80%;
    width: 45%;
    height: 160%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: mc-shine 4s ease-in-out infinite;
    pointer-events: none;
}
.menu-card:nth-child(2)::before { animation-delay: 1s;  }
.menu-card:nth-child(3)::before { animation-delay: 2s;  }
.menu-card:nth-child(4)::before { animation-delay: 3s;  }

/* Patrón de puntos sutil */
.menu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

/* Hover y press */
.menu-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}
.menu-card:active {
    transform: scale(0.94) !important;
    transition: transform 0.1s ease;
}

/* ---- Ícono ---- */
.menu-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 17px;
    background: #1c4f12;
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 34px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    animation: mc-float 3.2s ease-in-out infinite, mc-pulse 2.8s ease-out infinite;
}
.menu-card:nth-child(1) .menu-card-icon { animation-delay: 0s,   0s;   }
.menu-card:nth-child(2) .menu-card-icon { animation-delay: 0.5s, 0.7s; }
.menu-card:nth-child(3) .menu-card-icon { animation-delay: 1.0s, 1.4s; }
.menu-card:nth-child(4) .menu-card-icon { animation-delay: 1.5s, 2.1s; }

/* ---- Texto ---- */
.menu-card-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.menu-card-content h3 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    color: white;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    transform: scaleX(0.90);
}

.menu-card-content p {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    line-height: 1.3;
}

/* ─── SLOT SPONSOR HOME ──────────────────────────────────────── */
@keyframes sp-pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}
@keyframes sp-slide-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sponsor-slot {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    margin-bottom: 0;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    border: 3px solid #1c4f12;
    /* aspect-ratio 16:9 garantiza proporción perfecta en cualquier pantalla */
    aspect-ratio: 16 / 9;
}

/* Video ocupa todo el slot */
.sponsor-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradiente oscuro inferior para que el texto sea legible */
.sponsor-slot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0)       30%,
        rgba(0,30,10,0.55)  65%,
        rgba(0,20,5,0.88)  100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 14px 14px 14px;
}

/* Badge PUBLICIDAD - esquina superior derecha */
.sponsor-slot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.8);
    font-size: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    text-transform: uppercase;
    z-index: 3;
    animation: sp-pulse-badge 2.5s ease-in-out infinite;
}

/* Fila inferior: logo+texto a la izquierda, botón a la derecha */
.sponsor-slot-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    z-index: 3;
    position: relative;
    animation: sp-slide-up 0.7s ease both;
}

.sponsor-id-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Círculo con emoji del sponsor */
.sponsor-emoji-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sponsor-text-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sponsor-label-tag {
    font-size: 8px;
    color: var(--brand-secondary);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sponsor-biz-name {
    font-family: var(--font-display);
    font-size: 16px;
    color: white;
    line-height: 1.1;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-slogan {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
    font-style: italic;
}

/* Botón VISITAR */
.sponsor-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-secondary);
    color: #2a1a00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 22px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.sponsor-visit-btn:hover,
.sponsor-visit-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Dots indicadores */
.sponsor-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
}

.sp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.sp-dot-active {
    background: var(--brand-secondary);
    width: 18px;
    border-radius: 3px;
}

/* Calendar Ad Banner */
.calendar-ad-banner {
    margin-top: 25px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--brand-primary);
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--brand-secondary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.footer-info {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.footer-contact {
    margin-top: 10px;
}

.footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer-email-link:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-email-link i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .promo-name {
        font-size: 18px;
    }
    
    .menu-card {
        padding: 14px 10px;
        border-radius: 50%;
    }
    
    .menu-card-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 11px;
    }

    .menu-card-content h3 {
        font-size: 15px;
    }
    
    .menu-card-content p {
        font-size: 10px;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

.screen-container {
    display: none;
    min-height: 100vh;
    background: var(--bg-main);
}

.screen-container.active {
    display: block !important;
}

/* Estilo para pantallas con clase .screen (usado por ranking, sponsors, etc.) */
.screen {
    display: none;
    min-height: 100vh;
    background: var(--bg-main);
}

.screen.hidden {
    display: none !important;
}

.screen.active {
    display: block !important;
}

/* ========== PREMIOS SCREEN ========== */
.prizes-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 30px;
}

.prizes-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.prizes-header h2 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0;
    transform: scaleX(0.90);
}

.prizes-header p {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

.prizes-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.prize-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px var(--shadow);
    border-left: 4px solid var(--brand-secondary);
}

.prize-card.top {
    border-left-width: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255,255,255,1) 100%);
}

.prize-position {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 10px;
}

.prize-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.prize-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 5px;
}

.prize-detail {
    font-size: 15px;
    color: var(--brand-primary);
    font-weight: 600;
    margin-top: 10px;
}

.special-prize-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px var(--shadow);
    display: flex;
    gap: 15px;
    align-items: start;
}

.special-prize-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.special-prize-content h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.special-prize-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.special-prize-content .prize-detail {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: 600;
}

.prizes-terms {
    background: var(--bg-main);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.prizes-terms p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== POLÍTICAS SCREEN ========== */
.policies-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 30px;
}

.policies-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.policies-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 0 5px;
    letter-spacing: 0;
    transform: scaleX(0.90);
}

.policies-header h2 i {
    color: white;
    font-size: 26px;
    margin-right: 12px;
}

.policies-date {
    font-size: 14px;
    opacity: 0.9;
}

.policy-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px var(--shadow);
}

.policy-section h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.policy-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

.policies-acceptance {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--brand-secondary);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.policies-acceptance p {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

.policies-contact {
    text-align: center;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 15px;
}

.policies-contact p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== CALENDAR SCREEN ========== */
.calendar-header {
    text-align: center;
    padding: 0 10px 5px 10px;
    background: transparent;
    color: white;
    border-radius: 0;
    margin-bottom: 15px;
}

.calendar-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-left: -10px;
    margin-right: -10px;
    letter-spacing: 0;
    transform: scaleX(0.90);
    color: var(--brand-primary);
    padding: 0 5px;
}

.calendar-header h2 i {
    color: var(--brand-primary);
    font-size: 26px;
    margin-right: 12px;
}

.calendar-header p {
    font-size: 14px;
    color: #1a1a1a;
    opacity: 0.9;
    margin-bottom: 3px;
}

.calendar-subtitle-bold {
    font-weight: 700 !important;
    margin-top: 3px;
}

.calendar-dates {
    font-weight: 400;
}

.calendar-timezone {
    color: white !important;
    font-weight: 700;
    margin-top: 5px;
    background: var(--brand-secondary);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.calendar-timezone i {
    margin-right: 5px;
    color: white;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.group-btn {
    background: white;
    border: 2px solid var(--bg-main);
    border-radius: 15px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.group-btn:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow);
}

.group-btn.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    border-color: var(--brand-primary);
    color: white;
}

.group-label {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.group-count {
    font-size: 12px;
    opacity: 0.7;
}

/* ── BUSCADOR POR EQUIPO ───────────────────────────────────── */
.team-search-bar {
    background: white;
    border: 2px solid rgba(0,107,63,0.12);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.team-search-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.team-search-label i {
    color: var(--brand-secondary);
    margin-right: 4px;
}

.team-search-controls {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.team-search-select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid rgba(0,107,63,0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-body);
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23006B3F' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.team-search-select:focus {
    border-color: var(--brand-primary);
    background-color: white;
}

.team-search-select.team-search-error {
    border-color: #e74c3c;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.team-search-btn {
    padding: 10px 16px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-search-btn:hover {
    background: #004D2C;
    transform: translateY(-1px);
}

.team-search-btn i { color: var(--brand-secondary); }

/* Partido resaltado del equipo buscado */
.match-card.team-search-match { margin-bottom: 12px; }

.match-team.searched-team .match-team-name {
    font-weight: 800;
    color: var(--brand-primary);
}

.match-team.searched-team .match-flag {
    transform: scale(1.15);
}

/* ── PANTALLA PRÓXIMAMENTE ─────────────────────────────────── */
.coming-soon-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.coming-soon-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.coming-soon-card {
    background: linear-gradient(160deg, #006B3F 0%, #004D2C 100%);
    border: 2px solid var(--brand-secondary);
    border-radius: 24px;
    padding: 36px 28px 28px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: csSlidein 0.35s ease;
}

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

.coming-soon-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.coming-soon-close:hover { background: rgba(255,255,255,0.25); }

.coming-soon-emoji {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.coming-soon-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-secondary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.coming-soon-divider {
    width: 60px;
    height: 2px;
    background: var(--brand-secondary);
    margin: 0 auto 16px;
    border-radius: 2px;
    opacity: 0.6;
}

.coming-soon-msg {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.coming-soon-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 24px;
}

.coming-soon-btn {
    background: var(--brand-secondary);
    color: #1a1a1a;
    border: none;
    padding: 13px 28px;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(212,175,55,0.4);
    width: 100%;
}
.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.5);
}
/* ── FIN PRÓXIMAMENTE ───────────────────────────────────────── */

/* ── FIN BUSCADOR ─────────────────────────────────────────── */

/* Banderas en tarjetas de grupo — grid 2×2 con PNG */
.group-flags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    justify-items: center;
    align-items: center;
}

.group-flag-img {
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: block;
}

.group-flag-unknown {
    width: 28px;
    height: 21px;
    background: #e8e8e8;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-all-matches {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.btn-all-matches:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 107, 63, 0.3);
}

/* Group Info */
.group-info {
    margin-top: 25px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.group-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1px;
}

.close-btn {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.group-teams {
    background: white;
    padding: 20px;
    border-left: 4px solid var(--brand-secondary);
}

.team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    background: var(--bg-main);
    border-radius: 8px;
}

.team-flag {
    width: 40px;
    height: 28px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.team-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.group-matches {
    background: white;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px var(--shadow);
}

.match-card {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--brand-secondary);
}

.match-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.match-date i {
    color: var(--brand-primary);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.match-team.away {
    flex-direction: row-reverse;
}

.match-flag {
    width: 32px;
    height: 24px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.match-team-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.match-vs {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-secondary);
    padding: 0 10px;
}

.match-venue {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.match-venue i {
    color: var(--brand-primary);
    font-size: 14px;
}

.match-status {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand-primary);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.match-status.upcoming {
    background: #10b981;
}

.match-status.live {
    background: #ef4444;
    animation: pulse 2s infinite;
}

.match-status.finished {
    background: #6b7280;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========== PHASE TABS ========== */
.phase-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.phase-tab {
    flex: 1;
    padding: 14px 12px;
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.phase-tab:hover {
    background: var(--bg-main);
}

.phase-tab.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

.phase-tab i {
    font-size: 18px;
}

/* ========== NUEVOS ESTILOS PARA BOTONES GRUPOS/ELIMINATORIAS ========== */
.phase-tabs-new-style {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.phase-tab-new-style {
    padding: 16px;
    background: white;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.phase-tab-new-style:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 107, 63, 0.3);
}

.phase-tab-new-style.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

.phase-tab-new-style i {
    font-size: 18px;
}

.phase-content {
    display: none;
}

.phase-content.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

.phase-content.hidden {
    display: none !important;
}

.phase-title {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.phase-title h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.phase-title p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== KNOCKOUT STAGES ========== */
.knockout-stages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.knockout-stage {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-header:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
}

.stage-header.final-header {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
}

.stage-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stage-info {
    flex: 1;
}

.stage-info h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.stage-info p {
    font-size: 13px;
    opacity: 0.95;
}

.stage-toggle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.stage-toggle.active {
    transform: rotate(180deg);
}

.stage-matches {
    padding: 20px;
    display: none;
}

.stage-matches.active {
    display: block !important;
    animation: slideDown 0.4s ease;
}

.stage-matches.hidden {
    display: none !important;
}

.knockout-match {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--brand-primary);
    transition: all 0.3s ease;
}

.knockout-match:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.knockout-match.highlight {
    border-left-color: var(--brand-secondary);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, var(--bg-main) 100%);
}

.knockout-match.third-place {
    border-left-color: #cd7f32;
}

.knockout-match.final-match {
    border-left-color: #D4AF37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, var(--bg-main) 100%);
    border-left-width: 6px;
}

.match-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.final-match .match-number {
    font-size: 14px;
    color: #D4AF37;
}

.knockout-team {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.vs-text {
    color: var(--brand-secondary);
    font-family: var(--font-display);
    font-size: 16px;
    padding: 0 8px;
}

.match-details {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.match-details i {
    color: var(--brand-primary);
}

/* ========== PERFIL DE USUARIO ========== */
#profileSection {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
    background: #f4f9f6;
    overflow-y: auto;
    overflow-x: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 40px;
    color: white;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 28px;
    color: white;
    margin-bottom: 5px;
    text-align: center;
}

.profile-email {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.stat-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-content {
    padding: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px var(--shadow);
}

.profile-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-title i {
    font-size: 22px;
}

.profile-form-group {
    margin-bottom: 18px;
}

.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.1);
}

.profile-form-input:disabled {
    background: #F8F8F8;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.edit-mode-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.btn-edit {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-edit.editing {
    background: var(--brand-primary);
    color: white;
}

.form-actions {
    display: none;
    gap: 10px;
    margin-top: 20px;
}

.form-actions.active {
    display: flex;
}

.btn-save,
.btn-cancel {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-save {
    background: var(--brand-primary);
    border: none;
    color: white;
}

.btn-save:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-cancel {
    background: white;
    border: 2px solid #E5E5E5;
    color: var(--text-primary);
}

.btn-cancel:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Facturas */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-item {
    background: #F8F9FA;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.invoice-item:hover {
    border-color: var(--brand-primary);
    background: white;
}

.invoice-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.invoice-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.invoice-details {
    flex: 1;
}

.invoice-number {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.invoice-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-delete-invoice {
    background: transparent;
    border: none;
    color: var(--error);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-delete-invoice:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.invoice-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.invoice-empty i {
    font-size: 48px;
    color: #E5E5E5;
    margin-bottom: 15px;
}

.invoice-empty p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========== BOTONES DE PERFIL ========== */
.profile-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-profile-action {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-back-home {
    background: var(--brand-primary);
    color: white;
}

.btn-back-home:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 107, 63, 0.3);
}

.btn-logout {
    background: transparent;
    color: var(--error);
    border: 2px solid var(--error);
}

.btn-logout:hover {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-add-invoice {
    background: var(--brand-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.btn-add-invoice:hover {
    background: #C89619;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Modal para agregar factura */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 28px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-primary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    color: var(--error);
    transform: rotate(90deg);
}

.logout-section {
    margin-top: 30px;
}

.btn-logout {
    width: 100%;
    background: white;
    border: 2px solid var(--error);
    color: var(--error);
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout:hover {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.badge-new {
    background: var(--error);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* ========== CALENDARIO POR FECHAS ========== */
#calendarView {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

#calendarView.active {
    display: block;
}

.calendar-view-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-month-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--brand-primary);
    min-width: 150px;
    text-align: center;
}

.btn-month-nav {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    color: var(--brand-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-month-nav:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1);
}

.btn-month-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.calendar-grid {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px var(--shadow);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 400;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 10px 5px;
    text-transform: uppercase;
}

.calendar-weekday.weekend {
    color: var(--brand-primary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.has-matches {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 107, 63, 0.3);
}

.calendar-day.has-matches:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 107, 63, 0.5);
}

.calendar-day.has-matches::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--brand-secondary);
    border-radius: 50%;
}

.calendar-day.today {
    border-color: var(--brand-secondary);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--brand-secondary);
    color: white;
    transform: scale(1.05);
}

/* Vista de partidos del día */
#dayMatchesView {
    display: none;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

#dayMatchesView.active {
    display: block;
}

.day-matches-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.day-matches-date {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 5px;
}

.day-matches-count {
    font-size: 14px;
    opacity: 0.9;
}

.day-matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.day-match-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px var(--shadow);
    border-left: 4px solid var(--brand-secondary);
}

.day-match-time {
    display: inline-block;
    background: var(--brand-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.day-match-teams {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.day-match-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.day-match-phase {
    background: var(--bg-main);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-back-calendar {
    width: 100%;
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-back-calendar:hover {
    background: var(--brand-primary);
    color: white;
}
/* ========== ESTILOS POLLA MUNDIALISTA ========== */
.polla-header-stats {
    text-align: center;
    margin-bottom: 15px;
    background: transparent;
    padding: 0 10px 5px 10px;
    border-radius: 0;
    color: white;
}

.polla-header-stats h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-left: -10px;
    margin-right: -10px;
    letter-spacing: 0;
    color: var(--brand-primary);
    transform: scaleX(0.90);
    padding: 0 5px;
}

.polla-header-stats h2 i {
    color: var(--brand-primary);
    font-size: 26px;
    margin-right: 12px;
}

.polla-header-stats p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 3px;
    color: #1a1a1a;
}

.polla-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-card-polla {
    background: var(--brand-primary);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-value-polla {
    font-family: var(--font-display);
    font-size: 28px;
    display: block;
    color: var(--brand-secondary);
}

.stat-label-polla {
    font-size: 11px;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
}

/* NAVEGACIÓN DE FECHAS */
.polla-date-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 25px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.polla-date-nav::-webkit-scrollbar {
    height: 4px;
}

.polla-date-nav::-webkit-scrollbar-track {
    background: #e5e5e5;
    border-radius: 10px;
}

.polla-date-nav::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 10px;
}

.date-btn-polla {
    background: white;
    border: 2px solid #e5e5e5;
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-body);
}

.date-btn-polla.active {
    background: var(--brand-primary);
    border-color: var(--brand-secondary);
    color: white;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.date-btn-polla.past {
    opacity: 0.6;
}

.date-badge-polla {
    display: block;
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.7;
}

/* TARJETAS DE PARTIDO */
.polla-match-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.polla-match-card.open-match {
    border-color: var(--success);
}

.polla-match-card.locked-match {
    border-color: var(--warning);
    opacity: 0.85;
}

.polla-match-card.finished-correct {
    border-color: var(--success);
    background: linear-gradient(135deg, white 0%, rgba(34, 197, 94, 0.05) 100%);
}

.polla-match-card.finished-wrong {
    border-color: var(--error);
    background: linear-gradient(135deg, white 0%, rgba(239, 68, 68, 0.05) 100%);
}

.match-status-bar-polla {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.match-status-bar-polla.open {
    background: var(--success);
}

.match-status-bar-polla.locked {
    background: #f59e0b;
}

.match-status-bar-polla.finished-correct {
    background: var(--success);
}

.match-status-bar-polla.finished-wrong {
    background: var(--error);
}

.status-left-polla {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-header-polla {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 20px;
}

.match-info-polla {
    font-size: 12px;
    color: var(--brand-secondary);
    font-weight: 600;
}

.match-time-polla {
    font-size: 11px;
    color: var(--text-secondary);
}

.match-teams-polla {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.team-polla {
    flex: 1;
    text-align: center;
}

.team-flag-polla {
    font-size: 48px;
    margin-bottom: 8px;
    display: block;
}

.team-name-polla {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1px;
}

.team-country-polla {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 3px;
}

.vs-divider-polla {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--brand-secondary);
    font-weight: bold;
}

.prediction-buttons-polla {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.btn-predict-polla {
    background: rgba(0, 107, 63, 0.05);
    border: 2px solid rgba(0, 107, 63, 0.15);
    padding: 14px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-display, 'Rubik', sans-serif);
    letter-spacing: 0.5px;
    color: #444;
    text-transform: uppercase;
}

.btn-predict-polla:hover:not(:disabled) {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.12);
    color: #1a1a1a;
    transform: translateY(-2px);
}

.btn-predict-polla.selected {
    background: var(--brand-primary);
    border-color: var(--brand-secondary);
    color: white;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}

.btn-predict-polla:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Ícono eliminado — ya no se usa */
.predict-icon-polla { display: none; }
.predict-label-polla { display: none; }

/* Marcador ya registrado — estado en tarjeta */
.polla-score-registered {
    margin: 12px 0 4px;
    background: linear-gradient(135deg, #004D2C, #006B3F);
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.polla-score-reg-top {
    font-size: 11px;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.polla-score-reg-score {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.polla-score-reg-pg {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.polla-score-reg-edit {
    margin-top: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.polla-score-reg-edit:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* Botón Premio Marcador Exacto */
.polla-prize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin: 12px 0 4px;
    background: linear-gradient(135deg, #004D2C, #006B3F);
    color: #D4AF37;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    animation: prize-glow 2s ease-in-out infinite;
    transition: transform 0.15s ease;
}

.polla-prize-btn:hover {
    transform: scale(1.02);
}

.polla-prize-btn:active {
    transform: scale(0.98);
}

.polla-prize-btn-icon {
    font-size: 16px;
    animation: prize-bounce 1.2s ease-in-out infinite;
}

@keyframes prize-glow {
    0%, 100% { 
        border-color: #D4AF37;
        box-shadow: 0 0 6px rgba(212,175,55,0.3);
    }
    50% { 
        border-color: #F0D97A;
        box-shadow: 0 0 16px rgba(212,175,55,0.7), 0 0 4px rgba(212,175,55,0.4) inset;
    }
}

@keyframes prize-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.match-footer-polla {
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
}

.countdown-polla {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.countdown-polla.urgent {
    color: var(--error);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stadium-info-polla {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.result-info-polla {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
}

.result-info-polla.correct {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.result-info-polla.wrong {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.result-info-polla.live {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.result-score-polla {
    font-family: var(--font-display);
    font-size: 18px;
}

.result-points-polla {
    font-weight: 700;
    font-size: 16px;
}

/* BOTÓN GUARDAR FLOTANTE */
.btn-save-polla-floating {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 107, 63, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.btn-save-polla-floating:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 107, 63, 0.6);
}

.btn-save-polla-floating:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* LOADING */
.polla-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner-polla {
    border: 4px solid #e5e5e5;
    border-top: 4px solid var(--brand-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin-polla 1s linear infinite;
}

@keyframes spin-polla {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text-polla {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* EMPTY STATE */
.polla-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.polla-empty-state i {
    font-size: 64px;
    color: var(--brand-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.polla-empty-state h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.polla-empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

.polla-matches-list {
    padding-bottom: 80px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .team-flag-polla {
        font-size: 36px;
    }
    
    .team-name-polla {
        font-size: 20px;
    }

    .btn-predict-polla {
        padding: 15px 8px;
    }
}

/* ========== ESTILOS FINALISTAS ========== */
.finalists-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.finalists-alert {
    display: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.finalists-alert.show {
    display: block;
}

.finalists-alert.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.finalists-alert.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.finalists-alert.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.finalists-info-banner {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finalists-info-banner i {
    color: #FFC107;
    font-size: 20px;
    flex-shrink: 0;
}

.finalists-info-banner p {
    font-size: 14px;
    color: #856404;
    margin: 0;
}

.finalists-countdown {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.finalists-countdown .countdown-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.finalists-countdown .countdown-time {
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-primary);
}

.finalists-countdown .countdown-expired {
    color: #dc3545;
}

/* Titular Principal */
.finalists-main-title {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 10px 5px 10px;
    background: transparent;
}

.finalists-main-title h1 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 -10px 5px -10px;
    padding: 0 5px;
    transform: scaleX(0.90);
}

.finalists-main-title h1 i {
    color: var(--brand-primary);
    font-size: 26px;
    margin-right: 12px;
}

/* Textos Instructivos */
.finalists-instruction-text {
    text-align: center;
    margin: 10px 0;
    padding: 0 20px;
}

.finalists-instruction-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.3;
    margin: 0;
}

/* Botón Individual */
.finalists-single-button {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

.finalists-single-button .finalists-option-btn {
    max-width: 500px;
    width: 100%;
}

/* Botones de Opciones Iniciales */
.finalists-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.finalists-option-btn {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 107, 63, 0.1);
}

.finalists-option-btn i {
    font-size: 18px;
    color: var(--brand-primary);
}

.finalists-option-btn:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 107, 63, 0.3);
}

.finalists-option-btn:hover i {
    color: white;
}

/* Banner publicitario en Finalistas */
.finalists-ad-banner {
    margin: 15px 0;
}

.finalists-section-header {
    background: var(--brand-primary);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finalists-section-header i {
    font-size: 20px;
}

.finalists-section-header h2 {
    font-size: 18px;
    margin: 0;
    flex: 1;
}

/* Titular Step 1 Simplificado */
.finalists-step1-title {
    text-align: center;
    margin-bottom: 25px;
}

.finalists-step1-title h2 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
    letter-spacing: 0;
    transform: scaleX(0.90);
}

.finalists-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.finalists-progress-container {
    position: relative;
    background: #e9ecef;
    height: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
}

.finalists-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transition: width 0.3s ease;
    width: 0;
}

.finalists-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.finalists-teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.finalists-team-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.finalists-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finalists-team-card.selected {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.finalists-team-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.finalists-team-card .flag {
    font-size: 28px;
    margin-bottom: 5px;
}

.finalists-team-card .team-name-fin {
    font-size: 11px;
    font-weight: bold;
}

.finalists-team-card .check-icon {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--success);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.finalists-team-card.selected .check-icon {
    display: flex;
}

.finalists-finalist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.finalists-finalist-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.finalists-finalist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finalists-finalist-card.selected {
    border-width: 3px;
}

.finalists-finalist-card.selected.pos-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
}

.finalists-finalist-card.selected.pos-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    border-color: #C0C0C0;
}

.finalists-finalist-card.selected.pos-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B8792E 100%);
    border-color: #CD7F32;
}

.finalists-finalist-card.selected.pos-4 {
    background: linear-gradient(135deg, #8B4513 0%, #704214 100%);
    border-color: #8B4513;
}

.finalists-finalist-card.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.finalists-finalist-card .flag {
    font-size: 32px;
    margin-bottom: 8px;
}

.finalists-finalist-card .team-name-fin {
    font-size: 12px;
    font-weight: bold;
}

.finalists-finalist-card.selected .team-name-fin {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.finalists-finalist-card .position-medal {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 24px;
    display: none;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

.finalists-finalist-card.selected .position-medal {
    display: block;
}

.finalists-instructions {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.finalists-instructions h3 {
    color: #2196F3;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.finalists-instructions p {
    color: #0c5a99;
    margin: 0;
    font-size: 14px;
}

.finalists-button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.finalists-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.finalists-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.finalists-btn-primary {
    background: var(--brand-primary);
    color: white;
}

.finalists-btn-primary:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.finalists-btn-secondary {
    background: #6c757d;
    color: white;
}

.finalists-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.finalists-step.hidden {
    display: none;
}

/* ========== ESTILOS PANTALLA RESUMEN (STEP 0) ========== */
.finalists-summary-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
}

.finalists-summary-header i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--brand-secondary);
}

.finalists-summary-header h2 {
    font-size: 24px;
    margin: 0;
    font-family: var(--font-display);
}

.finalists-summary-section {
    margin-bottom: 30px;
}

.finalists-summary-title {
    font-size: 18px;
    color: var(--brand-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finalists-summary-title i {
    font-size: 22px;
}

/* Grid de 8 cuartos (sin orden) */
.finalists-summary-quarters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.finalists-summary-quarter-card {
    background: #f8f9fa;
    border: 2px solid var(--brand-primary);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.finalists-summary-quarter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finalists-summary-quarter-card .flag {
    font-size: 36px;
    margin-bottom: 8px;
}

.finalists-summary-quarter-card .team-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
}

/* Divider */
.finalists-summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-secondary), transparent);
    margin: 30px 0;
}

/* Grid TOP 4 (2 columnas) */
.finalists-summary-top4-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.finalists-summary-top4-card {
    background: white;
    border: 3px solid;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.finalists-summary-top4-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.finalists-summary-top4-card.pos-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
}

.finalists-summary-top4-card.pos-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    border-color: #C0C0C0;
}

.finalists-summary-top4-card.pos-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B8792E 100%);
    border-color: #CD7F32;
}

.finalists-summary-top4-card.pos-4 {
    background: linear-gradient(135deg, #8B4513 0%, #704214 100%);
    border-color: #8B4513;
}

.finalists-summary-top4-card .medal {
    font-size: 32px;
    margin-bottom: 5px;
}

.finalists-summary-top4-card .position {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.finalists-summary-top4-card .flag {
    font-size: 48px;
    margin-bottom: 10px;
}

.finalists-summary-top4-card .team-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Countdown en resumen */
.finalists-summary-countdown {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finalists-summary-countdown i {
    font-size: 24px;
    color: #FFC107;
}

.finalists-summary-countdown span {
    font-size: 14px;
    color: #856404;
}

.finalists-summary-countdown strong {
    color: var(--brand-primary);
    font-size: 16px;
}

/* Botón de cambiar pronóstico */
.finalists-summary-actions {
    margin-bottom: 20px;
}

.finalists-btn-change {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.finalists-btn-change:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.finalists-btn-change i {
    font-size: 32px;
    color: var(--brand-secondary);
}

.btn-change-content {
    text-align: left;
    flex: 1;
}

.btn-change-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.btn-change-content span {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
    .finalists-summary-quarters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finalists-summary-top4-grid {
        grid-template-columns: 1fr;
    }

    .finalists-summary-header h2 {
        font-size: 20px;
    }

    .finalists-summary-title {
        font-size: 16px;
    }

    .finalists-summary-quarter-card .flag {
        font-size: 28px;
    }

    .finalists-summary-top4-card .flag {
        font-size: 40px;
    }

    .finalists-btn-change {
        flex-direction: column;
        text-align: center;
    }

    .btn-change-content {
        text-align: center;
    }
}

/* Spinner for loading button */
.finalists-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

/* Responsive */
@media (max-width: 600px) {
    .finalists-teams-grid,
    .finalists-finalist-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .finalists-team-card .flag,
    .finalists-finalist-card .flag {
        font-size: 24px;
    }
    
    .finalists-team-card .team-name-fin,
    .finalists-finalist-card .team-name-fin {
        font-size: 9px;
    }

    .finalists-section-header h2 {
        font-size: 16px;
    }
    
    .finalists-step1-title h2 {
        font-size: 20px;
    }

    .finalists-button-container {
        flex-direction: column;
    }

    .finalists-btn {
        width: 100%;
        justify-content: center;
    }
    
    .finalists-main-title h1 {
        font-size: 24px;
    }
    
    .finalists-instruction-text {
        margin: 8px 0;
        padding: 0 15px;
    }
    
    .finalists-instruction-text p {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .finalists-single-button {
        margin: 10px 0;
    }
    
    .finalists-single-button .finalists-option-btn {
        max-width: 100%;
    }
    
    .finalists-option-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .finalists-option-btn i {
        font-size: 16px;
    }
    
    .finalists-option-btn .option-btn-title {
        font-size: 14px;
    }
    
    .finalists-option-btn .option-btn-subtitle {
        font-size: 12px;
    }
}
    </style>

/* ========================================
   SIMULADOR DE RESULTADOS - MODAL
   ======================================== */

/* Botón Activador del Simulador */
.simulator-trigger {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.simulator-btn {
    background: #015e41;
    border: none;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 94, 65, 0.3);
    width: 100%;
}

.simulator-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(1, 94, 65, 0.4);
    background: #017a51;
}

.simulator-btn:active {
    transform: translateY(0);
}

.simulator-btn i {
    font-size: 32px;
    color: white;
}

.simulator-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.simulator-btn-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.simulator-btn-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.25rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

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

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h2 i {
    font-size: 1.75rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.25rem;
}

/* Modal Body */
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Simulator Instructions */
.simulator-instructions {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.simulator-instructions i {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.simulator-instructions p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1e40af;
}

/* Simulator Tabs */
.simulator-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sim-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sim-tab:hover {
    color: #667eea;
}

.sim-tab.active {
    color: #667eea;
}

.sim-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
}

/* Tab Content */
.sim-tab-content {
    display: none;
}

.sim-tab-content.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

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

/* ===== SIMULATOR MODAL HEADER - estilo Calendario ===== */
.simulator-modal-header {
    background: #ffffff !important;
    border-bottom: 3px solid var(--brand-secondary) !important;
    padding: 18px 20px !important;
    border-radius: 16px 16px 0 0 !important;
}

.simulator-modal-header h2 {
    font-family: var(--font-display) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--brand-primary) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

.simulator-modal-header h2 i {
    color: var(--brand-secondary) !important;
    font-size: 22px !important;
    margin-right: 10px !important;
}

.simulator-modal-close {
    background: rgba(0, 107, 63, 0.1) !important;
    color: var(--brand-primary) !important;
    border: 1px solid rgba(0, 107, 63, 0.2) !important;
}

.simulator-modal-close:hover {
    background: var(--brand-primary) !important;
    color: white !important;
}
/* ===== FIN SIMULATOR MODAL HEADER ===== */

/* ===== SIMULATOR INSTRUCCIONES COMPACTAS ===== */
.simulator-instructions-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 107, 63, 0.07);
    border-left: 3px solid var(--brand-secondary);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #444;
    line-height: 1.4;
}

.simulator-instructions-compact i {
    color: var(--brand-secondary);
    font-size: 15px;
    flex-shrink: 0;
}

/* ===== SIMULATOR GRUPOS - SCROLL HORIZONTAL (estilo Polla) ===== */
.sim-groups-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-secondary) #e5e5e5;
}

.sim-groups-scroll::-webkit-scrollbar {
    height: 4px;
}

.sim-groups-scroll::-webkit-scrollbar-track {
    background: #e5e5e5;
    border-radius: 10px;
}

.sim-groups-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 10px;
}

.sim-group-scroll-btn {
    background: white;
    border: 2px solid #e5e5e5;
    color: #666;
    padding: 10px 18px;
    border-radius: 25px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.sim-group-scroll-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.sim-group-scroll-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-secondary);
    color: white;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}
/* ===== FIN SIMULATOR GRUPOS SCROLL ===== */

/* ===== SIMULATOR FOOTER FIJO - 4 COLUMNAS (solo íconos) ===== */
.simulator-footer-fixed {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0;
    border-top: 2px solid #f0f0f0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    flex-shrink: 0;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
}

.sim-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid #f0f0f0;
    position: relative;
}

.sim-footer-btn:last-child {
    border-right: none;
}

.sim-footer-btn i {
    font-size: 22px;
}

.sim-footer-btn:active {
    transform: scale(0.92);
}

/* Todos los botones — estilo dorado uniforme */
.sim-footer-btn--save,
.sim-footer-btn--ai,
.sim-footer-btn--continue,
.sim-footer-btn--reset {
    background: var(--brand-secondary);
    color: #1a1a1a;
}

.sim-footer-btn--save:hover { background: #c09b28; }
.sim-footer-btn--ai:hover   { background: #c09b28; }
.sim-footer-btn--continue:hover { background: #c09b28; }
.sim-footer-btn--reset:hover {
    background: #e8a020;
    color: #8b0000;
}

/* Botón contextual: Reiniciar (grupos) / Volver (eliminatorias) */
.sim-footer-btn--back {
    background: var(--brand-secondary);
    color: #1a1a1a;
}
.sim-footer-btn--back:hover { background: #c09b28; }
/* ===== FIN SIMULATOR FOOTER ===== */

/* ===== SIMULATOR WELCOME SCREEN ===== */
.simulator-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 20px;
    gap: 16px;
}

.simulator-welcome-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--brand-primary), #004D2C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,107,63,0.3);
}

.simulator-welcome-icon i {
    font-size: 32px;
    color: var(--brand-secondary);
}

.simulator-welcome-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simulator-welcome-text {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

.simulator-welcome-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(212, 175, 55, 0.12);
    border-left: 4px solid var(--brand-secondary);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
    max-width: 340px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.simulator-welcome-notice i {
    color: var(--brand-secondary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.simulator-welcome-start {
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0,107,63,0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.simulator-welcome-start:hover {
    background: #005530;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,107,63,0.45);
}
/* ===== FIN SIMULATOR WELCOME SCREEN ===== */

/* ===== SIMULATOR RESET MODAL ===== */
.sim-reset-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sim-reset-modal {
    background: white;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sim-reset-icon {
    width: 56px;
    height: 56px;
    background: #fff0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.sim-reset-icon i {
    font-size: 24px;
    color: #e74c3c;
}

.sim-reset-modal h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.sim-reset-modal p {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.sim-reset-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-reset-btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sim-reset-btn--group {
    background: var(--brand-primary);
    color: white;
}
.sim-reset-btn--group:hover { background: #005530; }

.sim-reset-btn--all {
    background: #e74c3c;
    color: white;
}
.sim-reset-btn--all:hover { background: #c0392b; }

.sim-reset-btn--cancel {
    background: #f5f5f5;
    color: #666;
}
.sim-reset-btn--cancel:hover { background: #e5e5e5; }
/* ===== FIN SIMULATOR RESET MODAL ===== */

/* ===== SIMULATOR COMPLETE MODAL ===== */
.sim-complete-modal {
    border-top: 4px solid var(--brand-secondary);
}

.sim-complete-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--brand-primary), #004D2C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(0,107,63,0.35);
}

.sim-complete-icon i {
    font-size: 30px;
    color: var(--brand-secondary);
}

.sim-complete-title {
    font-family: var(--font-display) !important;
    font-size: 16px !important;
    color: var(--brand-primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* ===== FIN SIMULATOR COMPLETE MODAL ===== */

/* ===== SIMULATOR PODIO FINAL ===== */
.sim-podium {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 8px;
    gap: 14px;
}

.sim-podium-subtitle {
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
}

.sim-podium-positions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.sim-podium-card {
    background: white;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sim-podium-1 {
    border-color: #D4AF37;
    background: linear-gradient(135deg, #fffdf0, #fff8d6);
    grid-column: span 2; /* campeón ocupa fila completa */
}

.sim-podium-2 { border-color: #b0b0b0; }
.sim-podium-3 { border-color: #cd7f32; }
.sim-podium-4 { border-color: #e0e0e0; }

.sim-podium-medal {
    font-size: 26px;
    line-height: 1;
}

.sim-podium-1 .sim-podium-medal { font-size: 36px; }

.sim-podium-rank {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #888;
}

.sim-podium-1 .sim-podium-rank {
    color: #b8860b;
    font-size: 11px;
}

.sim-podium-flag {
    font-size: 28px;
    margin: 4px 0;
}

.sim-podium-1 .sim-podium-flag { font-size: 40px; }

.sim-podium-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sim-podium-1 .sim-podium-name {
    font-size: 18px;
    color: var(--brand-primary);
}

.sim-podium-score {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    margin-top: 2px;
}

.sim-podium-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(212,175,55,0.1);
    border-left: 3px solid var(--brand-secondary);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    max-width: 340px;
    text-align: left;
}

.sim-podium-notice i {
    color: var(--brand-secondary);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}
/* ===== FIN SIMULATOR PODIO ===== */

/* ===== SELECTOR DE PENALES ===== */
.sim-penalty-row {
    display: none; /* se muestra via JS cuando hay empate */
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #fff8e1, #fffdf5);
    border: 1.5px dashed var(--brand-secondary);
    border-radius: 8px;
    animation: penFadeIn 0.3s ease;
}

@keyframes penFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sim-pen-label {
    font-size: 11px;
    font-weight: 700;
    color: #b8860b;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    letter-spacing: 0.3px;
}

.sim-pen-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 1.5px solid #e0c97a;
    border-radius: 20px;
    background: white;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.sim-pen-btn:hover {
    border-color: var(--brand-secondary);
    background: #fffbec;
    color: #1a1a1a;
}

.sim-pen-btn--active {
    background: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}

.sim-pen-vs {
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
    flex-shrink: 0;
}
/* ===== FIN SELECTOR DE PENALES ===== */

/* Groups Navigation */
.sim-groups-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: visible;
}

#simulatorGroupButtons.sim-groups-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

.sim-group-btn {
    background: #f3f4f6;
    border: 2px solid transparent;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.sim-group-btn:hover {
    background: #e5e7eb;
    border-color: #667eea;
}

.sim-group-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Group Content */
.sim-group-content {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
}

/* Matches container */
.sim-matches {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual match row */
.sim-match {
    background: white;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Info de fecha/lugar para fases eliminatorias */
.sim-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.sim-match-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(0,107,63,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.sim-match-date {
    font-size: 11px;
    color: #888;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap; /* nunca apilar verticalmente */
}

/* Teams */
.sim-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sim-team.team-left {
    justify-content: flex-start;
}

.sim-team.team-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
    text-align: right;
}

.sim-team-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sim-team-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px; /* evita desborde en móvil */
}

.sim-team-name.pending {
    color: #9ca3af;
    font-style: italic;
}

/* Score inputs container */
.sim-scores {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sim-score-input {
    width: 50px;
    height: 45px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.sim-score-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.sim-vs {
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sim-group-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Match Row */
/* Standings Table */
.sim-standings {
    margin-top: 2rem;
}

.sim-standings-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.sim-standings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sim-standings-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sim-standings-table th {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.sim-standings-table th:first-child,
.sim-standings-table th:nth-child(2) {
    text-align: left;
    padding-left: 1rem;
}

.sim-standings-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.sim-standings-table tbody tr:last-child {
    border-bottom: none;
}

.sim-standings-table tbody tr.qualified {
    background: rgba(16, 185, 129, 0.05);
}

.sim-standings-table tbody tr.third-place {
    background: rgba(245, 158, 11, 0.05);
}

.sim-standings-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    color: #4b5563;
}

.sim-standings-table td:first-child {
    font-weight: 700;
    color: #1f2937;
}

.sim-standings-table td:nth-child(2) {
    text-align: left;
    padding-left: 1rem;
    font-weight: 600;
}

/* Knockout Content */
.sim-knockout-content {
    display: grid;
    gap: 1rem;
}

.sim-knockout-match {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sim-knockout-match-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: center;
}

.sim-knockout-teams {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sim-knockout-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sim-knockout-team:hover {
    background: #f3f4f6;
}

.sim-knockout-team.winner {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.sim-knockout-team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sim-knockout-team-flag {
    font-size: 1.5rem;
}

.sim-knockout-team-name {
    font-weight: 600;
    color: #1f2937;
}

.sim-knockout-team-name.pending {
    color: #9ca3af;
    font-style: italic;
}

.sim-knockout-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.modal-btn-primary,
.modal-btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.modal-btn-secondary:hover {
    background: #e5e7eb;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-container {
        max-width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        animation: slideUpMobile 0.3s ease;
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .modal-header {
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-close {
        position: relative;
        z-index: 101;
    }

    .modal-body {
        padding: 1rem;
    }

    .simulator-instructions {
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
    }

    .simulator-instructions i {
        font-size: 1.125rem;
    }

    .simulator-instructions p {
        font-size: 0.8125rem;
    }

    .simulator-tabs {
        gap: 0.25rem;
    }

    .sim-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .sim-groups-nav {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem;
    }

    .sim-group-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .sim-match-content {
        gap: 0.5rem;
    }

    .sim-team-name {
        font-size: 0.8125rem;
    }

    .sim-team-flag {
        font-size: 1.25rem;
    }

    .sim-score-input {
        width: 45px;
        height: 40px;
        font-size: 1rem;
    }

    .sim-vs {
        font-size: 0.75rem;
    }

    .sim-standings-table th,
    .sim-standings-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .modal-footer {
        flex-direction: column;
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }

    .modal-btn-primary,
    .modal-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .simulator-btn {
        padding: 1rem 1.5rem;
    }

    .simulator-btn-title {
        font-size: 1rem;
    }

    .simulator-btn-subtitle {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .sim-groups-nav {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem;
    }

    .sim-group-btn {
        padding: 0.625rem 0.25rem;
        font-size: 0.6875rem;
    }

    .sim-team-name {
        font-size: 0.72rem;
        max-width: 72px;
    }

    .sim-team-flag {
        font-size: 1rem;
    }

    .sim-match {
        padding: 0.6rem 0.75rem;
    }

    .sim-match-content {
        gap: 0.25rem;
    }

    .sim-score-input {
        width: 40px;
        height: 38px;
        font-size: 0.9375rem;
    }

    .sim-group-content {
        padding: 1rem;
    }
}

/* ============================================
   SISTEMA UNIFICADO DE ALERTAS PERSONALIZADAS
   ============================================ */

.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.custom-alert-overlay.show {
    display: flex;
}

.custom-alert-container {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* Barra superior animada */
.custom-alert-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent), var(--brand-secondary));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.custom-alert-content {
    padding: 40px 30px;
    text-align: center;
}

/* Logo (solo para tipo welcome) */
.custom-alert-logo {
    margin-bottom: 25px;
    animation: bounceIn 0.6s ease-out;
}

.custom-alert-logo img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Icono de la alerta */
.custom-alert-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease-out;
}

.custom-alert-icon i {
    display: inline-block;
}

/* Título */
.custom-alert-title {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 15px 0;
    letter-spacing: 2px;
    transform: scaleX(0.90);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* Mensaje */
.custom-alert-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--brand-accent);
    margin: 0 0 30px;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* Botones */
.custom-alert-buttons {
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.custom-alert-btn {
    background: var(--brand-secondary);
    color: var(--brand-dark);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 140px;
}

.custom-alert-btn:hover {
    background: var(--brand-accent);
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

.custom-alert-btn i {
    margin-right: 6px;
    font-size: 16px;
}

/* ============================================
   VARIANTES DE ALERTAS POR TIPO
   ============================================ */

/* SUCCESS - Verde/Dorado */
.custom-alert-overlay.alert-success .custom-alert-icon {
    color: #4CAF50;
}

.custom-alert-overlay.alert-success .custom-alert-container::before {
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
    background-size: 200% 100%;
}

/* ERROR - Rojo */
.custom-alert-overlay.alert-error .custom-alert-icon {
    color: #f44336;
}

.custom-alert-overlay.alert-error .custom-alert-container::before {
    background: linear-gradient(90deg, #f44336, #e91e63, #f44336);
    background-size: 200% 100%;
}

.custom-alert-overlay.alert-error .custom-alert-title {
    color: #ff5252;
}

/* WARNING - Naranja */
.custom-alert-overlay.alert-warning .custom-alert-icon {
    color: #ff9800;
}

.custom-alert-overlay.alert-warning .custom-alert-container::before {
    background: linear-gradient(90deg, #ff9800, #ffc107, #ff9800);
    background-size: 200% 100%;
}

.custom-alert-overlay.alert-warning .custom-alert-title {
    color: #ffb74d;
}

/* INFO - Azul */
.custom-alert-overlay.alert-info .custom-alert-icon {
    color: #2196F3;
}

.custom-alert-overlay.alert-info .custom-alert-container::before {
    background: linear-gradient(90deg, #2196F3, #03A9F4, #2196F3);
    background-size: 200% 100%;
}

.custom-alert-overlay.alert-info .custom-alert-title {
    color: #64B5F6;
}

/* WELCOME - Especial con logo */
.custom-alert-overlay.alert-welcome .custom-alert-icon {
    display: none;
}

.custom-alert-overlay.alert-welcome .custom-alert-logo {
    display: block !important;
}

.custom-alert-overlay.alert-welcome .custom-alert-title {
    font-size: 32px;
    color: var(--brand-secondary);
    text-transform: none;
    letter-spacing: 0.5px;
}

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

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

@media (max-width: 768px) {
    .custom-alert-container {
        max-width: 90%;
        margin: 15px;
    }

    .custom-alert-content {
        padding: 30px 20px;
    }

    .custom-alert-logo img {
        max-width: 130px;
    }

    .custom-alert-icon {
        font-size: 50px;
    }

    .custom-alert-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .custom-alert-message {
        font-size: 14px;
        margin: 0 0 25px;
    }

    .custom-alert-btn {
        padding: 12px 28px;
        font-size: 14px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .custom-alert-logo img {
        max-width: 110px;
    }

    .custom-alert-icon {
        font-size: 45px;
    }

    .custom-alert-title {
        font-size: 20px;
    }

    .custom-alert-message {
        font-size: 13px;
    }

    .custom-alert-btn {
        font-size: 13px;
    }
}

/* ============================================
   FASES ELIMINATORIAS - SIMULADOR
   ============================================ */

.knockout-stage-container {
    padding: 2rem 1rem;
}

.knockout-stage-title {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-secondary);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: scaleX(0.90);
}

.knockout-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.knockout-match {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.knockout-match:hover {
    border-color: var(--brand-secondary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.knockout-match-header {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-secondary);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    transform: scaleX(0.90);
}

.knockout-match-teams {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.knockout-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s;
}

.knockout-team:hover {
    background: rgba(255, 255, 255, 0.08);
}

.knockout-team-flag {
    font-size: 28px;
    min-width: 35px;
    text-align: center;
}

.knockout-team-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.knockout-vs {
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-secondary);
    letter-spacing: 2px;
    padding: 0.25rem 0;
    transform: scaleX(0.90);
}

.knockout-match-detail {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive para fases eliminatorias */
@media (max-width: 768px) {
    .knockout-stage-title {
        font-size: 24px;
    }

    .knockout-matches {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .knockout-match {
        padding: 1rem;
    }

    .knockout-match-header {
        font-size: 14px;
    }

    .knockout-team-flag {
        font-size: 24px;
        min-width: 30px;
    }

    .knockout-team-name {
        font-size: 14px;
    }

    .knockout-vs {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .knockout-stage-container {
        padding: 1.5rem 0.75rem;
    }

    .knockout-team-name {
        font-size: 13px;
    }

    .knockout-match-detail {
        font-size: 10px;
    }
}
/* ========================================
   SIMULADOR V3.0 - NAVEGACIÓN MEJORADA
   Sistema de botón "Continuar" progresivo
   ======================================== */

/* Container principal del stage */
.simulator-stage-container {
    min-height: 400px;
}

.sim-stage-content {
    animation: fadeInContent 0.3s ease;
}

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

/* Botones de navegación en el footer */
#simulatorBackBtn {
    background: #6b7280;
}

#simulatorBackBtn:hover {
    background: #4b5563;
}

#simulatorContinueBtn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

#simulatorContinueBtn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Estilos para fases eliminatorias */
.knockout-stage-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.knockout-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
}

.knockout-section-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.knockout-match {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.knockout-match:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.knockout-match.final-match {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

.knockout-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.knockout-match-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #667eea;
    background: #eef2ff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.knockout-match-info {
    font-size: 0.75rem;
    color: #6b7280;
}

.knockout-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.knockout-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.knockout-team.team-left {
    flex-direction: row;
}

.knockout-team.team-right {
    flex-direction: row-reverse;
}

.knockout-team-flag {
    font-size: 2rem;
    flex-shrink: 0;
}

.knockout-team-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.knockout-team.team-left .knockout-team-name {
    text-align: left;
}

.knockout-team.team-right .knockout-team-name {
    text-align: right;
}

.knockout-scores {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.knockout-vs {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
}

/* Inputs de marcadores en knockout */
.knockout-scores .sim-score-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    background: white;
    transition: all 0.2s ease;
}

.knockout-scores .sim-score-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .knockout-match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .knockout-match-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .knockout-team {
        width: 100%;
        justify-content: center;
    }

    .knockout-team.team-right {
        flex-direction: row;
    }

    .knockout-team-name {
        text-align: center !important;
    }

    .knockout-scores {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones de transición entre stages */
.stage-transition-enter {
    animation: slideInRight 0.3s ease;
}

.stage-transition-exit {
    animation: slideOutLeft 0.3s ease;
}

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

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

/* Mensaje de estado cuando no se puede continuar */
.simulator-status-message {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.simulator-status-message i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.simulator-status-message p {
    margin: 0;
    font-size: 0.875rem;
    color: #92400e;
}


/* ========================================
   TRIVIA MUNDIALISTA - ESTILOS
   ======================================== */

/* Pantallas de Trivia */
.trivia-screen {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Pantalla de Inicio */
.trivia-intro {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 24px var(--shadow);
    text-align: center;
    display: none; /* Ya no se usa este contenedor */
}

/* Título principal de trivia (similar a finalistas) - SIN SOMBRA */
.trivia-main-title {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 10px 5px 10px;
    background: transparent;
}

.trivia-main-title h1 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 -10px 5px -10px;
    padding: 0 5px;
    transform: scaleX(0.90);
}

.trivia-main-title h1 i {
    color: var(--brand-primary);
    font-size: 26px;
    margin-right: 12px;
}

/* Textos Instructivos de trivia (similar a finalistas) */
.trivia-instruction-text {
    text-align: center;
    margin: 10px 0;
    padding: 0 15px;
}

.trivia-instruction-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.3;
    margin: 0;
}

.trivia-instruction-text p i {
    color: var(--brand-primary);
    margin-right: 8px;
}

/* NUEVO: Cuadro con sombra solo para las 3 instrucciones con iconos */
.trivia-rules-box {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    border: 1px solid var(--brand-primary);
}

.trivia-rules-box .trivia-instruction-text {
    margin: 8px 0;
}

.trivia-rules-box .trivia-instruction-text:first-child {
    margin-top: 0;
}

.trivia-rules-box .trivia-instruction-text:last-child {
    margin-bottom: 0;
}

/* Mantener estilos del ícono pero oculto por defecto */
.trivia-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: none;
}

.trivia-intro h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--brand-primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: none;
}

.trivia-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    display: none;
}

.trivia-rules {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 12px;
    display: none;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 15px;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item i {
    color: var(--brand-primary);
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.trivia-start-btn {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
    border: none;
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trivia-start-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 107, 63, 0.3);
}

/* Tarjeta de Pregunta */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 24px var(--shadow);
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-main);
}

.question-number {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
}

.difficulty-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.difficulty-badge.facil {
    background: #d1fae5;
    color: #065f46;
}

.difficulty-badge.medio {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-badge.dificil {
    background: #fee2e2;
    color: #991b1b;
}

.difficulty-badge.muy-dificil {
    background: #1e293b;
    color: #fbbf24;
}

/* Timer y Puntos */
.timer-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 12px;
}

.timer-display,
.points-display {
    text-align: center;
    flex: 1;
    max-width: 150px;
}

.display-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.display-value {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.timer-display .display-value {
    color: var(--text-primary);
}

.points-display .display-value {
    transition: color 0.3s ease;
}

.points-display .display-value.green { color: var(--success); }
.points-display .display-value.yellow { color: #fbbf24; }
.points-display .display-value.orange { color: #f97316; }
.points-display .display-value.red { color: var(--error); }

.display-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* Texto de Pregunta */
.question-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Opciones de Respuesta */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.option-btn.selected {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.option-btn.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.option-btn.incorrect {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Pregunta Abierta */
.open-question-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.open-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.open-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.1);
}

/* Botones de Trivia */
.trivia-next-btn {
    width: 100%;
    padding: 18px;
    border: none;
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trivia-next-btn:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 107, 63, 0.3);
}

.trivia-next-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Pantalla de Resultados */
.results-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 24px var(--shadow);
    text-align: center;
}

.results-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* Título principal estilo "ELIGE TUS FINALISTAS" */
.results-main-title {
    text-align: center;
    margin-bottom: 20px;
}

.results-main-title h1 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

/* NUEVO: Grid de stats en 2 columnas compactas */
.results-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.stat-box {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 15px 10px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--brand-primary);
    font-weight: bold;
}

/* Mantener estilos viejos ocultos por compatibilidad */
.results-card h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--brand-primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: none;
}

.results-score {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    display: none;
}

.score-item {
    flex: 1;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 12px;
    display: none;
}

.score-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.score-value {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--brand-primary);
    font-weight: bold;
}

/* Puntos Acumulados */
.accumulated-points {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #c79100 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    border: 3px solid #f4d03f;
}

.accumulated-points p {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.accumulated-points h3 {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: bold;
    color: white;
    margin: 10px 0;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* ========== CARRUSEL UNIFICADO DE RANKINGS ========== */
.unified-rankings-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px 15px;
    margin: 20px 0;
}

.unified-carousel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.unified-carousel-title {
    text-align: center;
}

.unified-carousel-title span {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unified-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.unified-rankings-carousel {
    position: relative;
    min-height: 280px;
}

/* Tarjeta unificada de ranking */
.unified-ranking-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 2px solid var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.15);
    text-align: center;
    display: none;
    position: relative;
}

.unified-ranking-card.active {
    display: block;
    animation: slideIn 0.4s ease;
}

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

/* Badge "TU MEJOR OPORTUNIDAD" - Dorado */
.unified-best-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge "SPONSOR VINCULADO" - Gris discreto */
.unified-sponsor-badge {
    background: #e9ecef;
    color: #6c757d;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unified-ranking-name {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 15px 0;
}

.unified-ranking-emoji {
    font-size: 48px;
    margin: 15px 0;
}

.unified-ranking-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.unified-ranking-position {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--brand-primary);
    font-weight: bold;
}

.unified-ranking-separator {
    font-size: 14px;
    color: var(--text-secondary);
}

.unified-ranking-total {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 600;
}

.unified-ranking-cta {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.unified-ranking-cta:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 107, 63, 0.3);
}

.unified-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 10px 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--brand-primary);
    width: 24px;
    border-radius: 5px;
}

.unified-carousel-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Estilos viejos - ocultos */
.best-opportunity-card {
    display: none;
}

.rankings-carousel-container {
    display: none;
}

/* Información del Ranking (estilos viejos - mantener por compatibilidad) */
.ranking-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #dee2e6;
    display: none;
}

.ranking-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ranking-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.ranking-stat {
    text-align: center;
}

.ranking-stat i {
    font-size: 32px;
    color: var(--brand-secondary);
    display: block;
    margin-bottom: 8px;
}

.ranking-stat span {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--brand-primary);
    font-weight: bold;
}

.ranking-message {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.ranking-message strong {
    color: var(--brand-secondary);
    font-weight: 700;
}

/* Próxima Ronda */
.next-round {
    padding: 5px 0;
    margin: 5px 0;
}

.next-round p {
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* Botones de Acción en Resultados */
.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.share-btn {
    width: 100%;
    background: white;
    color: #25D366;
    border: 3px solid #25D366;
    border-radius: 16px;
    padding: 18px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    background: #f0fdf4;
    border-color: #128C7E;
    color: #128C7E;
}

.back-btn {
    width: 100%;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 107, 63, 0.3);
}

/* Responsive para Trivia */
@media (max-width: 640px) {
    .trivia-screen {
        padding: 10px;
    }

    .question-card {
        padding: 14px;
        margin-bottom: 10px;
    }

    .question-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .question-number {
        font-size: 16px;
    }

    .difficulty-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .timer-section {
        gap: 10px;
        padding: 8px 14px;
        margin-bottom: 12px;
    }

    .timer-display,
    .points-display {
        max-width: 100px;
    }

    .display-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .display-value {
        font-size: 32px;
    }

    .display-label {
        font-size: 11px;
    }

    .question-text {
        font-size: 15px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .option-btn {
        padding: 12px 8px;
        font-size: 13px;
        border-radius: 10px;
    }

    .trivia-next-btn {
        padding: 13px;
        font-size: 14px;
        margin-top: 10px;
    }

    .results-score {
        flex-direction: column;
        gap: 15px;
    }

    .accumulated-points h3 {
        font-size: 48px;
    }

    .ranking-stats {
        gap: 20px;
    }

    .ranking-stat i {
        font-size: 24px;
    }

    .ranking-stat span {
        font-size: 22px;
    }
}


/* ========================================================================
   RANKING SYSTEM STYLES
   Sistema completo de rankings con tabs, sub-tabs y múltiples vistas
   ======================================================================== */

/* Contenedor principal de tabs */
.ranking-tabs-container {
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    padding: 5px;
    background: rgba(0, 107, 63, 0.05);
    border-radius: 12px;
    min-width: max-content;
}

.ranking-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ranking-tab i {
    font-size: 16px;
}

.ranking-tab:hover {
    background: rgba(0, 107, 63, 0.05);
    color: var(--brand-primary);
}

.ranking-tab.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

.ranking-tab.active i {
    color: var(--brand-secondary);
}

/* Sub-tabs de Trivia */
.ranking-subtabs-container {
    margin: 15px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ranking-subtabs {
    display: flex;
    gap: 8px;
    padding: 5px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    min-width: max-content;
}

.ranking-subtab {
    padding: 10px 18px;
    background: white;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ranking-subtab:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--brand-secondary);
}

.ranking-subtab.active {
    background: var(--brand-secondary);
    color: white;
    border-color: var(--brand-secondary);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

.ranking-subtab i {
    margin-right: 5px;
}

/* Contenedor de vistas de ranking */
.ranking-content {
    margin-top: 25px;
}

.ranking-view {
    display: none;
}

.ranking-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.trivia-period-view {
    display: none;
}

.trivia-period-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Header de información del ranking */
.ranking-header-info {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 107, 63, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 12px;
}

.ranking-header-info h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--brand-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ranking-header-info h3 i {
    color: var(--brand-secondary);
    margin-right: 10px;
}

.ranking-header-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.prize-info {
    font-size: 15px !important;
    font-weight: 600;
    color: var(--brand-secondary) !important;
    margin-top: 10px !important;
}

/* Indicador de tiempo */
.time-indicator {
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid var(--brand-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}

/* Card de posición del usuario */
.user-position-card {
    background: linear-gradient(135deg, rgba(0, 107, 63, 0.08) 0%, rgba(0, 107, 63, 0.03) 100%);
    border-left: 5px solid var(--brand-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-position-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.user-position-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.user-position-rank {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: bold;
    color: var(--brand-primary);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.user-position-info {
    flex: 1;
}

.user-position-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.user-position-points {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: bold;
    color: var(--brand-secondary);
    letter-spacing: 0.5px;
}

.user-position-breakdown,
.user-position-stats {
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid rgba(0, 107, 63, 0.15);
}

/* Tabla de ranking */
.ranking-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ranking-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-row:last-child {
    border-bottom: none;
}

.ranking-row:hover {
    background: rgba(0, 107, 63, 0.03);
}

.ranking-row.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.ranking-row.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
}

.ranking-row.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
}

/* Contenido de la fila */
.ranking-position {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: bold;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.ranking-row.top-1 .ranking-position,
.ranking-row.top-2 .ranking-position,
.ranking-row.top-3 .ranking-position {
    font-size: 32px;
}

.ranking-medal {
    font-size: 28px;
    min-width: 60px;
    text-align: center;
}

.ranking-user-info {
    flex: 1;
    margin-left: 15px;
}

.ranking-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.ranking-user-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.ranking-points {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: bold;
    color: var(--brand-primary);
    text-align: right;
    min-width: 100px;
    letter-spacing: 0.5px;
}

.ranking-row.top-1 .ranking-points {
    color: #FFD700;
}

.ranking-row.top-2 .ranking-points {
    color: #C0C0C0;
}

.ranking-row.top-3 .ranking-points {
    color: #CD7F32;
}

/* Badges dentro de stats */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.badge.fire {
    background: #ff6b6b;
    color: white;
}

.badge.speed {
    background: #4ecdc4;
    color: white;
}

.badge.perfect {
    background: #ffd93d;
    color: #333;
}

.badge.wise {
    background: #a8e6cf;
    color: #333;
}

/* Vista de Premios */
.prizes-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.prizes-title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.prize-category {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #f0f0f0;
}

.prize-category.grand-prize {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid var(--brand-secondary);
}

.prize-category-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.prize-category-title i {
    color: var(--brand-secondary);
    margin-right: 10px;
}

.prize-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.prize-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prize-item.gold {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
}

.prize-item.silver {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08) 0%, rgba(192, 192, 192, 0.03) 100%);
}

.prize-item.bronze {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.08) 0%, rgba(205, 127, 50, 0.03) 100%);
}

.prize-medal {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.prize-position {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 90px;
}

.prize-reward {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.prizes-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 107, 63, 0.05);
    border-radius: 10px;
}

.prizes-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.prizes-footer strong {
    color: var(--brand-primary);
    font-size: 16px;
}

.prizes-footer i {
    color: var(--brand-secondary);
    margin-right: 8px;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN - RANKING ========== */

@media (max-width: 768px) {
    /* Tabs principales */
    .ranking-tabs {
        gap: 8px;
        padding: 5px;
    }

    .ranking-tab {
        min-width: 90px;
        padding: 10px 12px;
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }

    .ranking-tab i {
        font-size: 18px;
    }

    .ranking-tab span {
        font-size: 11px;
    }

    /* Sub-tabs */
    .ranking-subtabs {
        gap: 6px;
    }

    .ranking-subtab {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Header de ranking */
    .ranking-header-info h3 {
        font-size: 22px;
    }

    .ranking-header-info p {
        font-size: 13px;
    }

    /* Card de usuario */
    .user-position-card {
        padding: 15px;
    }

    .user-position-content {
        gap: 12px;
    }

    .user-position-rank {
        font-size: 36px;
        min-width: 60px;
    }

    .user-position-name {
        font-size: 14px;
    }

    .user-position-points {
        font-size: 20px;
    }

    .user-position-breakdown,
    .user-position-stats {
        font-size: 12px;
    }

    /* Tabla de ranking */
    .ranking-row {
        padding: 14px 15px;
        flex-wrap: wrap;
    }

    .ranking-position,
    .ranking-medal {
        min-width: 50px;
        font-size: 20px;
    }

    .ranking-row.top-1 .ranking-position,
    .ranking-row.top-2 .ranking-position,
    .ranking-row.top-3 .ranking-position {
        font-size: 26px;
    }

    .ranking-medal {
        font-size: 24px;
    }

    .ranking-user-info {
        flex: 1;
        margin-left: 10px;
        min-width: 150px;
    }

    .ranking-user-name {
        font-size: 14px;
    }

    .ranking-user-stats {
        font-size: 11px;
    }

    .ranking-points {
        font-size: 18px;
        min-width: 80px;
    }

    /* Vista de premios */
    .prizes-container {
        padding: 20px 15px;
    }

    .prizes-title {
        font-size: 26px;
    }

    .prize-category {
        padding: 18px;
    }

    .prize-category-title {
        font-size: 18px;
    }

    .prize-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .prize-medal {
        font-size: 28px;
    }

    .prize-position {
        min-width: auto;
        font-size: 14px;
    }

    .prize-reward {
        font-size: 16px;
    }

    .prizes-footer {
        padding: 15px;
    }

    .prizes-footer p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ranking-tab {
        min-width: 75px;
        padding: 8px 10px;
    }

    .user-position-rank {
        font-size: 32px;
        min-width: 50px;
    }

    .ranking-user-stats {
        display: block;
    }

    .badge {
        display: block;
        margin: 5px 0;
        width: fit-content;
    }
}

/* ========================================
   SISTEMA DE PREMIOS
   ======================================== */

/* ========== PREMIOS SCREEN ========== */
#premiosScreen {
    display: none;
    min-height: 100vh;
    background: var(--bg-primary);
}

#premiosScreen.active {
    display: block;
}

/* ========== TABS PRINCIPALES ========== */
.premios-tabs-container {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.premios-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.premios-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.premios-tab i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.premios-tab.active {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

/* ========== SUBTABS (TRIVIA) ========== */
.premios-subtabs-container {
    background: white;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.premios-subtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.premios-subtab {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.premios-subtab.active {
    background: var(--brand-secondary);
    color: white;
    border-color: var(--brand-secondary);
}

/* ========== CONTENIDO ========== */
.premios-content {
    padding: 0 15px 30px;
}

.premios-view {
    display: none;
}

.premios-view.active {
    display: block;
}

.trivia-period-view {
    display: none;
}

.trivia-period-view.active {
    display: block;
}

/* ========== HEADER DE CATEGORÍA ========== */
.premios-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.category-icon {
    font-size: 48px;
    opacity: 0.9;
}

.category-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 0 0 8px 0;
}

.category-info p {
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.category-dates {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* ========== CARD DE PREMIO ========== */
.premio-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.premio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Badge de Estado */
.premio-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.premio-status-badge.activo {
    background: #28a745;
}

.premio-status-badge.cerrado {
    background: #dc3545;
}

.premio-status-badge.proximo {
    background: #007bff;
}

.premio-status-badge.entregado {
    background: #6c757d;
}

.premio-status-badge i {
    font-size: 8px;
}

/* Header del Premio */
.premio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.premio-position {
    font-size: 36px;
    font-family: var(--font-display);
    color: var(--brand-primary);
}

.premio-titulo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
}

/* Monto del Premio */
.premio-amount {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    margin-bottom: 20px;
}

.premio-value {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--brand-primary);
    font-weight: bold;
}

.premio-extra {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Descripción */
.premio-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* Criterio */
.premio-criterio {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.premio-criterio strong {
    display: block;
    color: var(--brand-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.premio-criterio p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.premio-max-score {
    display: inline-block;
    background: var(--brand-secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Info Grid */
.premio-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.premio-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.premio-info-item i {
    color: var(--brand-primary);
    font-size: 16px;
}

/* Botón de Términos */
.btn-premio-terminos {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-premio-terminos:hover {
    background: var(--brand-primary);
    color: white;
}

/* ========== TIMELINE ========== */
.premios-timeline {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.premios-timeline h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.timeline-items {
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dee2e6;
    color: white;
    flex-shrink: 0;
}

.timeline-item.cerrado .timeline-marker {
    background: #28a745;
}

.timeline-item.activo .timeline-marker {
    background: #007bff;
}

.timeline-marker.pulsing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0,123,255,0.3); }
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.timeline-header strong {
    color: var(--text-primary);
}

.timeline-dates {
    font-size: 13px;
    color: var(--text-secondary);
}

.timeline-prize {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.timeline-winner {
    font-size: 13px;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-countdown {
    font-size: 13px;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== MODAL DE TÉRMINOS ========== */
#terminosModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

#terminosModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#terminosModal .modal-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

#terminosModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
}

#terminosModal .modal-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
}

#terminosModal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

#terminosModal .modal-body {
    padding: 25px;
}

.terminos-premio-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.terminos-premio-info h4 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.terminos-premio-valor {
    font-size: 18px;
    color: var(--brand-primary);
    font-weight: 600;
}

.terminos-content h5 {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
}

.terminos-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.terminos-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

#terminosModal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .premios-category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .premio-info-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-items::before {
        left: 11px;
    }
    
    .timeline-marker {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .premios-tab {
        min-width: 100px;
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .premios-tab i {
        font-size: 18px;
    }
}


/* ========================================
   PANTALLAS QR - NUEVO
   ======================================== */

/* PANTALLA QR: BIENVENIDA */
#qrWelcomeScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.qr-welcome-container {
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.6s ease-out;
}

/* Logos Duales */
.dual-logos-header {
    text-align: center;
    margin-bottom: 30px;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.logo-box {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.logo-fm {
    background: var(--brand-primary);
    color: white;
    border: 3px solid var(--brand-secondary);
}

.logo-client {
    background: var(--client-primary);
    color: white;
    border: 3px solid var(--client-secondary);
}

.plus-separator {
    font-size: 32px;
    font-weight: bold;
    color: var(--brand-primary);
}

.qr-welcome-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.qr-welcome-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Beneficios */
.benefits-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid var(--client-primary);
}

.benefits-box h4 {
    font-size: 16px;
    color: var(--client-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-box li {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.benefits-box li:last-child {
    margin-bottom: 0;
}

.benefits-box li i {
    color: var(--success);
    margin-top: 2px;
}

/* Botones QR */
.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-secondary {
    background: white;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Info QR */
.qr-info-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-info-footer i {
    color: var(--client-primary);
}

/* PANTALLA QR: REGISTRO */
#qrRegisterScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.qr-register-container {
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.6s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

/* Header Registro QR */
.qr-register-header {
    text-align: center;
    margin-bottom: 25px;
}

.back-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--brand-primary);
}

/* Logos Pequeños */
.logos-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.logo-sm {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.logo-fm-sm {
    background: var(--brand-primary);
    border: 2px solid var(--brand-secondary);
}

.logo-client-sm {
    background: var(--client-primary);
    border: 2px solid var(--client-secondary);
}

.plus-sm {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-secondary);
}

.qr-register-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* Badge Vinculación */
.vinculacion-badge {
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-secondary) 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.vinculacion-badge i {
    font-size: 16px;
}

/* Botón Registro QR */
.btn-register-qr {
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-secondary) 100%);
    border: none;
    color: white;
    font-size: 16px;
    padding: 18px;
    margin-top: 10px;
}

.btn-register-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* Footer Registro */
.qr-register-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.qr-register-footer p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .qr-welcome-container,
    .qr-register-container {
        padding: 30px 20px;
    }
    
    .logo-box {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .qr-welcome-title {
        font-size: 20px;
    }
    
    .benefits-box h4 {
        font-size: 14px;
    }
    
    .benefits-box li {
        font-size: 13px;
    }
}

/* ========== FIN ESTILOS QR ========== */

/* ========== SPONSORS PAGE STYLES ========== */

.sponsors-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== HEADER SECCIÓN ========== */
.sponsors-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 10px 5px 10px;
    background: transparent;
}

.sponsors-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 -10px 5px -10px;
    padding: 0 5px;
    transform: scaleX(0.90);
}

.sponsors-header h1 i {
    color: var(--brand-primary);
    font-size: 26px;
    margin-right: 12px;
}

.sponsors-header p {
    font-size: 14px;
    color: #1a1a1a;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 3px;
}

/* ========== SECCIONES ========== */
.sponsors-section {
    margin-bottom: 35px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado */
    gap: 10px;
}

.section-count {
    background: var(--brand-secondary);
    color: white;
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* ========== TABS (pestañas) ========== */
.sponsors-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: var(--bg-main);
    padding: 5px;
    border-radius: 10px;
}

.sponsors-tabs .tab-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsors-tabs .tab-btn.active {
    background: white;
    color: var(--brand-primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ========== FILTROS DROPDOWN ========== */
.sponsors-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dropdown-wrapper {
    position: relative;
    flex: 1;
    min-width: 140px;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-btn:hover,
.dropdown-btn.active {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.dropdown-btn i {
    transition: transform 0.3s ease;
}

.dropdown-btn.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: var(--bg-main);
}

.dropdown-item.active {
    background: var(--brand-primary);
    color: white;
}

.btn-clear-filters {
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--error);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--error);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-filters:hover {
    background: var(--error);
    color: white;
}

/* ========== SPONSORS GRID ========== */
.sponsors-grid {
    display: grid;
    gap: 15px;
}

.basic-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.basic-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.basic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--brand-primary);
}

.basic-card.linked {
    border-color: var(--success);
}

.basic-card.linked:hover {
    border-color: var(--success);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.basic-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--bg-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.basic-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.basic-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== BADGES DE PREMIOS ========== */
.sponsor-prizes-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
}

.prize-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.prize-badge.weekly {
    background: linear-gradient(135deg, #8DC63F, #6fa830);
}

.prize-badge.monthly {
    background: linear-gradient(135deg, #5FCCF5, #3eb8e0);
}

.prize-badge.final {
    background: linear-gradient(135deg, #FFF200, #e6db00);
}

.sponsor-star {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--shadow);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.empty-state .btn-primary {
    margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sponsors-header h1 {
        font-size: 24px;
    }
    
    .basic-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    /* Mantener filtros en fila horizontal (3 columnas) */
    .sponsors-filters {
        gap: 8px;
    }
    
    .dropdown-wrapper {
        min-width: auto;
        flex: 1;
    }
    
    .dropdown-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn-clear-filters {
        padding: 10px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .sponsors-container {
        padding: 15px;
    }
    
    .sponsors-header h1 {
        font-size: 24px;
    }
    
    .sponsors-tabs .tab-btn {
        font-size: 11px;
        padding: 12px 8px;
    }
    
    .basic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .basic-card {
        padding: 15px;
    }
    
    .basic-logo {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .basic-card h4 {
        font-size: 14px;
    }
    
    /* Mantener filtros en 3 columnas horizontal */
    .sponsors-filters {
        gap: 6px;
    }
    
    .dropdown-btn {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .dropdown-btn span {
        font-size: 11px;
    }
    
    .btn-clear-filters {
        padding: 10px 12px;
        font-size: 11px;
        gap: 4px;
    }
    
    .btn-clear-filters i {
        font-size: 10px;
    }
}

/* ========== FIN SPONSORS STYLES ========== */

/* ========== SPONSOR DETAIL SCREEN ========== */
#sponsorDetailScreen {
    background: var(--bg-main);
    min-height: 100vh;
}

.sponsor-detail-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sponsor-detail-header .back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.sponsor-detail-header .back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.sponsor-detail-header h1 {
    color: white;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1px;
    margin: 0;
}

.sponsor-detail-main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.sponsor-detail-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.sponsor-detail-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sponsor-detail-logo span {
    font-size: 50px;
}

.sponsor-detail-card h2 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.sponsor-category {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsor-eligibility {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sponsor-eligibility.eligible {
    background: #d4edda;
    color: #155724;
}

.sponsor-eligibility.not-eligible {
    background: #fff3cd;
    color: #856404;
}

.sponsor-detail-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.sponsor-tab-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sponsor-tab-btn i {
    font-size: 18px;
}

.sponsor-tab-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.sponsor-tab-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.sponsor-detail-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sponsor-tab-content {
    display: none;
}

.sponsor-tab-content.active {
    display: block;
}

/* Premios */
.premio-period {
    margin-bottom: 30px;
}

.premio-period:last-child {
    margin-bottom: 0;
}

.premio-period-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.premio-period-header i {
    color: var(--brand-primary);
    font-size: 20px;
}

.premio-period-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 1px;
}

.prizes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prize-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.prize-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.prize-item.featured {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--brand-secondary);
}

.prize-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.prize-info {
    flex: 1;
}

.prize-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.prize-value {
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
}

.no-prizes {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Condiciones */
.conditions-list h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.conditions-list h4 i {
    color: var(--brand-primary);
}

.conditions-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conditions-list li {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    padding-left: 35px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.conditions-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: var(--brand-primary);
    font-weight: bold;
}

/* Empty States */
.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-small i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state-small p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sponsor-detail-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sponsor-tab-btn {
        padding: 15px 10px;
    }
    
    .sponsor-detail-card {
        padding: 25px 15px;
    }
    
    .premio-period-header h3 {
        font-size: 16px;
    }
}

/* ========== FIN SPONSOR DETAIL SCREEN ========== */


/* ========== TAB DESTACADOS - ELITE BANNER (TIER 3) ========== */
.elite-banner {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.elite-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.elite-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.elite-badge {
    display: inline-block;
    background: var(--brand-secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.elite-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.elite-name {
    font-family: var(--font-display);
    font-size: 32px;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.elite-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-elite {
    background: white;
    color: var(--brand-primary);
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--brand-secondary);
    color: white;
}

/* ========== FEATURED SPONSORS GRID (TIER 2) ========== */
.featured-sponsors-container {
    margin-bottom: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.featured-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    min-height: 220px;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    border-color: var(--brand-secondary);
}

.featured-card.linked {
    border-color: var(--success);
    background: linear-gradient(to bottom, rgba(34, 197, 94, 0.05), white);
}

.featured-card.linked:hover {
    border-color: var(--success);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.3);
}

.featured-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--bg-main), #e8e8e8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.featured-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.featured-category {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--brand-secondary), #c99c1f);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* ========== RESPONSIVE - TAB DESTACADOS ========== */
@media (max-width: 768px) {
    .elite-banner {
        padding: 30px 20px;
    }
    
    .elite-logo {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
    
    .elite-name {
        font-size: 26px;
    }
    
    .elite-tagline {
        font-size: 14px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card {
        min-height: 200px;
        padding: 20px;
    }
    
    .featured-logo {
        width: 70px;
        height: 70px;
        font-size: 38px;
    }
    
    .featured-card h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .elite-banner {
        padding: 25px 15px;
    }
    
    .elite-logo {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .elite-name {
        font-size: 22px;
    }
    
    .btn-elite {
        padding: 14px 24px;
        font-size: 12px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== FIN TAB DESTACADOS ========== */

/* ========== PREMIOS ACTIVOS - FILTROS ========== */
.premios-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.premio-filter-btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premio-filter-btn:hover {
    border-color: var(--brand-secondary);
    box-shadow: 0 2px 8px var(--shadow);
}

.premio-filter-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

/* Badge para sponsors destacados */
.featured-prize-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--brand-secondary), #c99c1f);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== RESPONSIVE - PREMIOS FILTROS ========== */
@media (max-width: 768px) {
    .premios-filters {
        gap: 8px;
    }
    
    .premio-filter-btn {
        padding: 10px 16px;
        font-size: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .premios-filters {
        gap: 6px;
    }
    
    .premio-filter-btn {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }
}

/* ========== FIN PREMIOS FILTROS ========== */

/* ============================================================
   MÓDULO: PREMIOS Y GANADORES (pg-*)
   Estilos aislados bajo prefijo pg- para evitar conflictos
   ============================================================ */

/* Variables locales del módulo (reusan las del sitio) */
.pg-module {
    --pg-primary: var(--brand-primary);
    --pg-primary-dark: var(--brand-dark);
    --pg-secondary: var(--brand-secondary);
    --pg-success: var(--success);
    --pg-danger: #EF4444;
    --pg-warning: #F59E0B;
    --pg-gray-50: #F9FAFB;
    --pg-gray-100: #F3F4F6;
    --pg-gray-200: #E5E7EB;
    --pg-gray-300: #D1D5DB;
    --pg-gray-600: #4B5563;
    --pg-gray-700: #374151;
    --pg-gray-900: #111827;
    font-family: var(--font-body);
    background: #f5f5f5;
    min-height: calc(100vh - 56px);
}

/* ===== HERO HEADER ===== */
.pg-hero-header {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pg-hero-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pg-pulse 4s ease-in-out infinite;
}
@keyframes pg-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.15) rotate(180deg); opacity: 0.3; }
}
.pg-trophy-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255,255,255,0.3);
    color: white;
}
.pg-hero-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 0 5px;
    letter-spacing: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transform: scaleX(0.90);
}

.pg-hero-header h1 i {
    color: white;
    font-size: 26px;
    margin-right: 12px;
}
.pg-hero-subtitle {
    font-size: 14px; opacity: 0.95;
    max-width: 400px; margin: 0 auto;
    line-height: 1.6; position: relative; z-index: 1;
}

/* ===== CARRUSEL ===== */
.pg-carousel-wrapper {
    background: linear-gradient(180deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    padding: 30px 0; position: relative; overflow: hidden;
}
.pg-carousel-wrapper::before, .pg-carousel-wrapper::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 80px;
    z-index: 10; pointer-events: none;
}
.pg-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--pg-primary-dark) 0%, transparent 100%);
}
.pg-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--pg-primary-dark) 0%, transparent 100%);
}
.pg-carousel-track-container {
    overflow: hidden; cursor: grab; user-select: none;
}
.pg-carousel-track-container.grabbing { cursor: grabbing; }
.pg-carousel-track {
    display: flex; gap: 20px; padding: 0 20px; will-change: transform;
}
.pg-prize-card-mini {
    flex: 0 0 280px;
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.pg-prize-card-mini:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.pg-prize-image-wrapper {
    position: relative; width: 100%; height: 180px;
    overflow: hidden; background: #f0f0f0;
}
.pg-prize-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.pg-prize-card-mini:hover .pg-prize-image-wrapper img { transform: scale(1.1); }
.pg-category-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 8px 16px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 2;
}
.pg-badge-general { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); color: #1a1a1a; }
.pg-badge-sponsor { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); color: white; }
.pg-prize-content-mini { padding: 20px; text-align: center; }
.pg-prize-title-mini {
    font-size: 16px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 16px; line-height: 1.3;
    min-height: 42px; display: flex; align-items: center; justify-content: center;
}
.pg-btn-conocer-mas {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    color: white; border: none; border-radius: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(107,28,28,0.3);
}
.pg-btn-conocer-mas:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,28,28,0.5); }
.pg-swipe-indicator {
    text-align: center; padding: 12px;
    background: linear-gradient(180deg, var(--pg-primary-dark) 0%, var(--pg-primary) 100%);
    color: rgba(255,255,255,0.8); font-size: 12px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pg-swipe-indicator i { animation: pg-swipe 2s ease-in-out infinite; }
@keyframes pg-swipe {
    0%, 100% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

/* ===== MAIN TABS ===== */
.pg-main-tabs {
    display: flex; background: var(--pg-gray-50);
    border-bottom: 2px solid var(--pg-gray-200);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pg-main-tabs::-webkit-scrollbar { height: 0; }
.pg-main-tab {
    flex: 1; min-width: 140px; padding: 18px 15px;
    background: transparent; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; color: var(--pg-gray-600);
    text-transform: uppercase; transition: all 0.3s ease;
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    letter-spacing: 0.5px;
}
.pg-main-tab::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 3px; background: var(--pg-primary);
    transform: scaleX(0); transition: transform 0.3s ease;
}
.pg-main-tab:hover { background: rgba(107,28,28,0.05); color: var(--pg-primary); }
.pg-main-tab.active { background: white; color: var(--pg-primary); }
.pg-main-tab.active::after { transform: scaleX(1); }
.pg-tab-icon { font-size: 16px; }
.pg-tab-badge {
    background: #EF4444; color: white;
    font-size: 10px; font-weight: 700; padding: 2px 6px;
    border-radius: 10px; margin-left: 4px;
}

/* ===== TAB CONTENT ===== */
.pg-tab-content { display: none; padding: 20px; animation: pg-fadeIn 0.4s ease; }
.pg-tab-content.active { display: block; }
@keyframes pg-fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== INFO BANNER ===== */
.pg-info-banner {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    border-left: 4px solid var(--pg-secondary);
    padding: 16px; border-radius: 8px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(218,165,32,0.1);
}
.pg-info-banner h3 {
    color: var(--pg-primary); font-size: 15px; margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px; font-weight: 700;
}
.pg-info-banner p { color: var(--pg-gray-700); font-size: 13px; line-height: 1.5; }

/* ===== SUB TABS ===== */
.pg-sub-tabs {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 10px; margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.pg-sub-tabs::-webkit-scrollbar { height: 6px; }
.pg-sub-tabs::-webkit-scrollbar-thumb { background: var(--pg-gray-300); border-radius: 3px; }
.pg-sub-tab {
    flex-shrink: 0; padding: 10px 20px;
    background: white; border: 2px solid var(--pg-gray-200);
    border-radius: 25px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--pg-gray-700);
    transition: all 0.3s ease; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}
.pg-sub-tab:hover { border-color: var(--pg-primary); color: var(--pg-primary); transform: translateY(-2px); }
.pg-sub-tab.active {
    background: var(--pg-primary); color: white;
    border-color: var(--pg-primary);
    box-shadow: 0 4px 12px rgba(107,28,28,0.3);
}

/* ===== CHOICE CARDS ===== */
.pg-choice-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.pg-choice-card {
    background: white; border: 3px solid var(--pg-gray-200);
    border-radius: 20px; padding: 40px 20px;
    text-align: center; cursor: pointer; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.pg-choice-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    opacity: 0; transition: opacity 0.3s ease;
}
.pg-choice-card:hover { border-color: var(--pg-primary); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(107,28,28,0.25); }
.pg-choice-card:hover::before { opacity: 0.05; }
.pg-choice-icon { font-size: 64px; margin-bottom: 15px; position: relative; z-index: 1; }
.pg-choice-title { font-size: 18px; font-weight: 900; color: var(--pg-gray-900); margin-bottom: 8px; position: relative; z-index: 1; text-transform: uppercase; letter-spacing: 0.5px; }
.pg-choice-subtitle { font-size: 13px; color: var(--pg-gray-600); position: relative; z-index: 1; }

/* ===== GAME CATEGORIES GRID ===== */
.pg-game-categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.pg-game-category-card {
    background: white; border: 2px solid var(--pg-gray-200);
    border-radius: 16px; padding: 30px 20px;
    text-align: center; cursor: pointer; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.pg-game-category-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    opacity: 0; transition: opacity 0.3s ease;
}
.pg-game-category-card:hover { border-color: var(--pg-primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(107,28,28,0.2); }
.pg-game-category-card:hover::before { opacity: 0.05; }
.pg-game-category-icon { font-size: 48px; margin-bottom: 12px; position: relative; z-index: 1; }
.pg-game-category-icon i { color: var(--brand-primary); }
.pg-game-category-title { font-size: 16px; font-weight: 700; color: var(--pg-gray-900); margin-bottom: 6px; position: relative; z-index: 1; }
.pg-game-category-subtitle { font-size: 12px; color: var(--pg-gray-600); position: relative; z-index: 1; }
.pg-game-category-badge {
    position: absolute; top: 10px; right: 10px;
    background: #EF4444; color: white;
    font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 12px; z-index: 2;
}

/* ===== SPONSORS GRID ===== */
.pg-sponsors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.pg-sponsor-grid-card {
    background: white; border: 2px solid var(--pg-gray-200);
    border-radius: 16px; padding: 25px 15px;
    text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative;
}
.pg-sponsor-grid-card:hover { border-color: var(--pg-primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(107,28,28,0.2); }
.pg-sponsor-grid-icon { font-size: 40px; margin-bottom: 10px; }
.pg-sponsor-grid-name { font-size: 14px; font-weight: 700; color: var(--pg-gray-900); margin-bottom: 4px; }
.pg-sponsor-grid-category { font-size: 11px; color: var(--pg-gray-600); margin-bottom: 8px; }
.pg-sponsor-grid-prizes { font-size: 12px; font-weight: 700; color: var(--pg-primary); }
.pg-sponsor-grid-badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.pg-sponsor-mini-badge { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.pg-sponsor-mini-badge.linked { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); }
.pg-sponsor-mini-badge.prizes { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); color: white; }

/* ===== SUB NAVIGATION ===== */
.pg-sub-navigation {
    display: none; background: var(--pg-gray-50);
    padding: 15px 20px; border-bottom: 2px solid var(--pg-gray-200);
    align-items: center; gap: 15px;
}
.pg-sub-navigation.active { display: flex; }
.pg-btn-back {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: white;
    border: 2px solid var(--pg-gray-300); border-radius: 8px;
    color: var(--pg-gray-700); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
}
.pg-btn-back:hover { border-color: var(--pg-primary); color: var(--pg-primary); transform: translateX(-3px); }
.pg-sub-nav-title { flex: 1; font-size: 16px; font-weight: 700; color: var(--pg-gray-900); display: flex; align-items: center; gap: 10px; }
.pg-sub-nav-icon { font-size: 24px; }

/* ===== PRIZE CARDS 2-COLUMNAS ===== */
.pg-prizes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-prize-card {
    position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
    aspect-ratio: 3/4; background-size: cover; background-position: center;
    background-color: #2a2a2a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.pg-prize-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.28); }
.pg-prize-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.08) 35%, rgba(0,0,0,0.65) 70%, rgba(0,0,0,0.88) 100%);
}
.pg-prize-card-top-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; z-index: 2;
}
.pg-prize-card-top-badge.badge-general { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); color: #1a1a1a; }
.pg-prize-card-top-badge.badge-sponsor { background: rgba(0,0,0,0.55); color: white; backdrop-filter: blur(4px); }
.pg-prize-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; z-index: 2; }
.pg-prize-card-category { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.pg-prize-card-title { font-size: 13px; font-weight: 700; color: white; line-height: 1.3; margin-bottom: 10px; }
.pg-prize-card-btn {
    display: block; width: 100%; padding: 8px;
    background: white; color: var(--pg-primary); border: none; border-radius: 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    cursor: pointer; transition: background 0.2s ease;
}
.pg-prize-card-btn:hover { background: #f0e6e6; }

/* ===== GANADORES HERO ===== */
.pg-ganadores-hero {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    border-radius: 14px; padding: 20px; margin-bottom: 24px; text-align: center;
}
.pg-ganadores-hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 12px; }
.pg-gh-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pg-gh-stat-num { font-size: 26px; font-weight: 900; color: var(--pg-secondary); line-height: 1; }
.pg-gh-stat-label { font-size: 10px; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.3px; text-align: center; line-height: 1.4; }
.pg-gh-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.pg-gh-tagline { font-size: 12px; color: rgba(255,255,255,0.85); font-style: italic; margin: 0; }

/* ===== GANADORES GALERÍA ===== */
.pg-ganadores-section-title { font-size: 15px; font-weight: 700; color: var(--pg-gray-900); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pg-ganadores-section-title i { color: var(--pg-secondary); }
.pg-ganadores-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 28px; }

/* Botón "Ver todos los ganadores" */
.pg-gf-ver-todos {
    text-align: center;
    margin: -10px 0 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Título separador "Todos los Ganadores" */
.pg-ganadores-explore-title {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.pg-ganadores-explore-title::before,
.pg-ganadores-explore-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: var(--pg-gray-200);
}

.pg-ganadores-explore-title::before { left: 0; }
.pg-ganadores-explore-title::after { right: 0; }

.pg-ganadores-explore-title span {
    font-size: 13px;
    font-weight: 700;
    color: var(--pg-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    padding: 0 10px;
}

.pg-ganador-thumb { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--pg-gray-200); }
.pg-ganador-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.pg-ganador-thumb:hover img { transform: scale(1.08); }
.pg-ganador-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.72) 100%); }
.pg-ganador-thumb-badge { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.pg-ganador-thumb-delivered { position: absolute; top: 5px; right: 5px; background: var(--pg-success); color: white; font-size: 8px; font-weight: 700; padding: 2px 5px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.pg-ganador-thumb-name { position: absolute; bottom: 5px; left: 5px; right: 5px; font-size: 9px; font-weight: 700; color: white; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* ===== GANADORES FILTROS ===== */
.pg-gf-filters { background: var(--pg-gray-50); border: 1px solid var(--pg-gray-200); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.pg-gf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pg-gf-row.full { grid-template-columns: 1fr; }
.pg-gf-group { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.pg-gf-label { font-size: 10px; font-weight: 700; color: var(--pg-gray-600); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.pg-gf-label i { color: var(--pg-primary); }
.pg-gf-select {
    width: 100%; padding: 9px 12px; border: 2px solid var(--pg-gray-200);
    border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--pg-gray-900);
    background: white; cursor: pointer; transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b1c1c' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}
.pg-gf-select:focus { outline: none; border-color: var(--pg-primary); }
.pg-gf-clear { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--pg-primary); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 0; margin-top: 2px; text-decoration: underline; text-underline-offset: 2px; }
.pg-gf-ver-mas { text-align: center; padding: 16px; margin-top: 12px; }
.pg-gf-ver-mas button { background: linear-gradient(135deg, var(--pg-primary), var(--pg-primary-dark)); color: white; border: none; padding: 10px 20px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform 0.2s; }
.pg-gf-ver-mas button:active { transform: scale(0.96); }
.pg-gf-lista-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pg-gf-lista-title { font-size: 14px; font-weight: 700; color: var(--pg-gray-900); }
.pg-gf-lista-count { background: var(--pg-primary); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.pg-gf-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pg-gray-100); }
.pg-gf-item:last-child { border-bottom: none; }
.pg-gf-item-num { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--pg-primary), var(--pg-primary-dark)); color: white; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pg-gf-item-num.gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.pg-gf-item-num.silver { background: linear-gradient(135deg, #94A3B8, #64748B); }
.pg-gf-item-num.bronze { background: linear-gradient(135deg, #CD7F32, #A0522D); }
.pg-gf-item-info { flex: 1; min-width: 0; }
.pg-gf-item-name { font-size: 13px; font-weight: 700; color: var(--pg-gray-900); margin-bottom: 2px; }
.pg-gf-item-prize { font-size: 11px; color: var(--pg-gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-gf-item-meta { font-size: 10px; color: #6B7280; margin-top: 2px; }
.pg-gf-status { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 8px; text-align: center; line-height: 1.3; }
.pg-gf-status.delivered { background: #e8f8f0; color: #1a7a4a; }
.pg-gf-status.notified { background: #FFF3D6; color: #7a5c00; }
.pg-gf-empty { text-align: center; padding: 30px 20px; color: var(--pg-gray-600); font-size: 13px; }
.pg-gf-empty i { font-size: 32px; color: var(--pg-gray-300); display: block; margin-bottom: 10px; }

/* ===== MODAL OVERLAY ===== */
.pg-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.pg-modal-overlay.active { display: flex; }
.pg-modal-container { background: white; border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: pg-slideUp 0.3s ease; }
@keyframes pg-slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.pg-modal-header-img { position: relative; height: 250px; overflow: hidden; }
.pg-modal-header-img img { width: 100%; height: 100%; object-fit: cover; }
.pg-modal-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.3s ease; z-index: 10; }
.pg-modal-close:hover { background: #EF4444; transform: rotate(90deg); }
.pg-modal-category-badge { position: absolute; top: 15px; left: 15px; padding: 10px 20px; border-radius: 25px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.pg-modal-body { padding: 30px; }
.pg-modal-title { font-size: 26px; font-weight: 900; color: #1a1a1a; margin-bottom: 15px; line-height: 1.2; }
.pg-modal-description { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 25px; }
.pg-modal-section { margin-bottom: 25px; }
.pg-modal-section h4 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pg-modal-section ul { list-style: none; padding: 0; }
.pg-modal-section li { padding: 10px 0; padding-left: 28px; position: relative; font-size: 14px; color: #555; line-height: 1.5; }
.pg-modal-section li::before { content: '✓'; position: absolute; left: 0; color: var(--pg-success); font-weight: 700; font-size: 16px; }

/* ===== ACORDEÓN ===== */
.pg-accordion { border: 2px solid var(--pg-gray-200); border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.pg-accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%); cursor: pointer; user-select: none; transition: background 0.2s ease; }
.pg-accordion-header:hover { background: linear-gradient(135deg, #FFF3D6 0%, #FFE8B0 100%); }
.pg-accordion-header-left { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--pg-primary); }
.pg-accordion-header-left i { font-size: 16px; color: var(--pg-secondary); }
.pg-accordion-arrow { font-size: 12px; color: var(--pg-primary); transition: transform 0.3s ease; }
.pg-accordion.open .pg-accordion-arrow { transform: rotate(180deg); }
.pg-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: white; }
.pg-accordion.open .pg-accordion-body { max-height: 400px; }
.pg-accordion-inner { padding: 16px; border-top: 1px solid var(--pg-gray-200); }
.pg-condition-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--pg-gray-100); font-size: 13px; color: #555; line-height: 1.5; }
.pg-condition-item:last-child { border-bottom: none; padding-bottom: 0; }
.pg-condition-item i { color: var(--pg-secondary); font-size: 13px; margin-top: 2px; flex-shrink: 0; }

/* ===== WINNER MODAL ===== */
.pg-winner-modal-status { position: absolute; bottom: 14px; left: 14px; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pg-winner-modal-status.delivered { background: var(--pg-success); color: white; }
.pg-winner-modal-status.pending { background: rgba(0,0,0,0.55); color: white; backdrop-filter: blur(4px); }
.pg-winner-info-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pg-gray-100); }
.pg-winner-info-row:last-child { border-bottom: none; }
.pg-winner-info-icon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pg-winner-info-label { font-size: 10px; color: var(--pg-gray-600); text-transform: uppercase; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 2px; }
.pg-winner-info-value { font-size: 14px; font-weight: 700; color: var(--pg-gray-900); line-height: 1.3; }

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .pg-hero-header h1 { font-size: 24px; }
    .pg-main-tab { min-width: 110px; padding: 14px 10px; font-size: 11px; }
    .pg-prize-card-title { font-size: 12px; }
    .pg-ganadores-gallery { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================================
   MIS COMPRAS — SISTEMA COMPLETO
   ============================================================ */

/* Badge de elegibilidad "partial" */
.sponsor-eligibility.partial {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

/* Summary Card */
.purchases-container {
    max-width: 600px;
    margin: 0 auto;
}

.summary-card {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 107, 63, 0.3);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.summary-header h3 {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.5px;
    color: white;
    margin: 0;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--brand-secondary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eligibility-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.eligibility-badge {
    flex: 1;
    min-width: 90px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.eligibility-badge.eligible {
    background: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

.eligibility-badge.not-eligible {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

/* Botón REGISTRAR COMPRA */
.btn-add-purchase {
    width: 100%;
    padding: 16px;
    background: var(--brand-secondary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-purchase:hover {
    background: #c99c1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Header historial */
.purchases-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.purchases-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin: 0;
}

.purchases-count {
    background: var(--brand-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 26px;
    text-align: center;
}

/* Lista de compras */
.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

.purchase-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.purchase-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.purchase-empty h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.purchase-empty p {
    font-size: 13px;
    line-height: 1.6;
}

.purchase-item {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.purchase-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.1);
}

.purchase-item.old {
    opacity: 0.75;
    border-color: #ddd;
}

.purchase-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-date i {
    color: var(--brand-primary);
}

.purchase-amount {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.purchase-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.purchase-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.purchase-detail i {
    color: var(--text-secondary);
    width: 14px;
    flex-shrink: 0;
}

.purchase-warning {
    background: #fff8e1;
    border-left: 3px solid var(--brand-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #7a5c00;
    margin-bottom: 10px;
}

.purchase-actions {
    display: flex;
    gap: 8px;
}

.btn-purchase-action {
    flex: 1;
    padding: 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-purchase-action.edit {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-purchase-action.edit:hover {
    background: var(--brand-primary);
    color: white;
}

.btn-purchase-action.delete {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-purchase-action.delete:hover {
    background: #ef4444;
    color: white;
}

/* ============================================================
   MODAL REGISTRAR COMPRA
   ============================================================ */

.compras-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.compras-modal-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.25s ease;
}

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

.compras-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
}

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

.compras-modal-header {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    padding: 24px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    color: white;
}

.compras-modal-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
}

.compras-modal-header p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

#comprasForm {
    padding: 24px;
}

.compras-form-group {
    margin-bottom: 18px;
}

.compras-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.compras-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.compras-form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: white;
}

.compras-form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.compras-form-warning {
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.compras-form-warning-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 10px;
}

.compras-form-warning ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.compras-form-warning ul li {
    font-size: 12px;
    color: #7f1d1d;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.compras-form-warning ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #dc2626;
}

.compras-form-warning-footer {
    font-size: 12px;
    font-weight: 700;
    color: #7f1d1d;
}

.compras-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-compras-cancel {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-compras-cancel:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-compras-submit {
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--brand-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

.btn-compras-submit:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* ============================================================
   CONDICIONES — FORMATO ENRIQUECIDO
   ============================================================ */

.conditions-rich-content {
    max-width: 600px;
    margin: 0 auto;
}

.conditions-how-header {
    text-align: center;
    margin-bottom: 25px;
}

.conditions-how-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.conditions-how-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.conditions-how-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.conditions-numbered-list {
    list-style: none;
    padding: 0;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.condition-numbered-item {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8e8e8;
    align-items: flex-start;
}

.condition-numbered-item:last-child {
    border-bottom: none;
}

.condition-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
}

.condition-text-block {
    flex: 1;
}

.condition-text-block strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.condition-text-block p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Tips Box */
.conditions-tips-box {
    background: rgba(34, 197, 94, 0.06);
    border-left: 4px solid #22c55e;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.conditions-tips-box h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #15803d;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.conditions-tips-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conditions-tips-box li {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.8;
    padding-left: 22px;
    position: relative;
}

.conditions-tips-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* Anti-Fraude Box */
.conditions-antifraud-box {
    background: rgba(0, 107, 63, 0.05);
    border-left: 4px solid var(--brand-primary);
    padding: 18px;
    border-radius: 10px;
}

.conditions-antifraud-box h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-primary);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.conditions-antifraud-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.conditions-antifraud-box li {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.8;
    padding-left: 22px;
    position: relative;
}

.conditions-antifraud-box li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
}

.antifraud-example {
    background: white;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.antifraud-example strong {
    color: var(--text-primary);
}

/* Responsive Compras */
@media (max-width: 480px) {
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255,255,255,0.08);
        padding: 10px 14px;
        border-radius: 8px;
    }
    .stat-value {
        font-size: 22px;
        margin: 0;
    }
    .compras-modal-buttons {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   CARRUSEL DE PROMOCIONES
   ============================================================ */

.promo-carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-slide-wrapper {
    transition: opacity 0.15s ease;
}

.promo-card {
    border-radius: 18px;
    padding: 32px 24px 28px;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.promo-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.promo-card-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    padding: 5px 14px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.promo-card-emoji {
    font-size: 64px;
    line-height: 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.promo-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: white;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promo-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
    max-width: 340px;
    position: relative;
    z-index: 1;
}

.promo-card-badge {
    font-size: 12px;
    font-weight: 700;
    color: white;
    padding: 7px 18px;
    border-radius: 25px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Navegación del carrusel */
.promo-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.promo-nav-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: var(--brand-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.promo-nav-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: scale(1.08);
}

.promo-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active {
    background: var(--brand-primary);
    width: 24px;
    border-radius: 5px;
}

/* Footer info */
.promo-footer-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.promo-footer-info i {
    color: var(--brand-primary);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}


/* ============================================================
   MODAL DE VINCULACIÓN
   ============================================================ */

.link-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 16px;
}

.link-modal-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.25s ease;
}

.link-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: slideUpModal 0.3s ease;
}

/* Header del modal */
.link-modal-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    padding: 24px 24px 32px;
    text-align: center;
    color: white;
    position: relative;
}

.link-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 20px;
    background: white;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.link-modal-emoji {
    font-size: 48px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.link-modal-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1.5px;
    margin: 0 0 6px 0;
    color: white;
}

.link-modal-header-sub {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* Beneficios */
.link-modal-benefits {
    padding: 28px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.link-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.link-benefit-item i {
    color: var(--brand-secondary);
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Formulario */
.link-modal-form {
    padding: 0 24px 20px;
}

.link-code-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.link-code-label i {
    color: var(--brand-primary);
    font-size: 15px;
}

.link-code-input-wrapper {
    position: relative;
}

.link-code-input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 2.5px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--brand-primary);
    background: #fafafa;
    text-align: center;
    text-transform: uppercase;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-code-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 107, 63, 0.08);
}

.link-code-input.input-error {
    border-color: #ef4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.link-code-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 16px;
}

.link-code-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Mensajes error / éxito */
.link-error-msg,
.link-success-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.link-error-msg {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #dc2626;
}

.link-success-msg {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 3px solid #22c55e;
}

/* Botones */
.link-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    padding: 0 24px 20px;
}

.btn-link-cancel {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-link-cancel:hover {
    border-color: #aaa;
    color: var(--text-primary);
}

.btn-link-submit {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--brand-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 107, 63, 0.3);
}

.btn-link-submit:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 107, 63, 0.35);
}

.btn-link-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Nota de privacidad */
.link-modal-note {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    padding: 0 24px 20px;
    line-height: 1.5;
    margin: 0;
}

/* Badge clickable */
.sponsor-eligibility.clickable {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.sponsor-eligibility.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 107, 63, 0.2);
}

.sponsor-eligibility.clickable:active {
    transform: scale(0.97);
}

/* Pulso en el badge de vincular */
.sponsor-eligibility.not-eligible.clickable {
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 107, 63, 0.0); }
    50%       { box-shadow: 0 0 0 6px rgba(0, 107, 63, 0.12); }
}

@media (max-width: 480px) {
    .link-modal-buttons {
        grid-template-columns: 1fr;
    }
    .link-code-input {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .link-modal {
        max-height: 96vh;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }
    .link-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .link-modal-header {
        padding: 20px 20px 28px;
    }
    .link-modal-emoji {
        font-size: 40px;
    }
    .link-modal-header h2 {
        font-size: 20px;
    }
    .link-modal-benefits {
        padding: 24px 20px 12px;
    }
}



/* ========================================
   POPUP INICIAL - CAPA 1 PLATAFORMA
   El Goleador — Mundial 2026
   ======================================== */

.egol-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: egolFadeIn 0.3s ease;
}

.egol-popup-overlay.egol-hidden {
    display: none;
}

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

@keyframes egolSlideUp {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

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

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

@keyframes egolBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ─── Card principal ─── */
.egol-popup-card {
    width: 92%;
    max-width: 420px;
    height: 80vh;
    max-height: 680px;
    background: var(--brand-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
    animation: egolSlideUp 0.4s cubic-bezier(.22,.68,0,1.2) forwards;
}

.egol-popup-card.egol-closing {
    animation: egolSlideDown 0.3s ease forwards;
}

/* Fondo decorativo */
.egol-popup-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(0, 107, 63, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--brand-dark) 0%, #002d1a 100%);
    z-index: 0;
}

/* Imagen de fondo */
.egol-popup-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    display: none;
}

.egol-popup-img-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 27, 13, 0.5)  0%,
        rgba(0, 27, 13, 0.25) 30%,
        rgba(0, 27, 13, 0.75) 65%,
        rgba(0, 27, 13, 0.97) 100%
    );
}

.egol-popup-card.egol-img-background .egol-popup-bg { background: none !important; }
.egol-popup-card.egol-img-background .egol-popup-img-bg { display: block; }
.egol-popup-card.egol-img-background .egol-popup-emoji-area { display: none; }

/* Imagen superior */
.egol-img-top-wrap {
    display: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.egol-img-top-wrap img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}

.egol-img-top-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(to bottom, transparent, var(--brand-dark));
    pointer-events: none;
}

.egol-popup-card.egol-img-top .egol-img-top-wrap { display: block; }
.egol-popup-card.egol-img-top .egol-popup-emoji-area { display: none; }

/* Texto sobre fondo imagen */
.egol-popup-card.egol-img-background .egol-popup-headline,
.egol-popup-card.egol-img-background .egol-popup-subtext,
.egol-popup-card.egol-img-background .egol-popup-tag {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* ─── Inner wrapper ─── */
.egol-popup-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ─── Header ─── */
.egol-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    flex-shrink: 0;
}

.egol-popup-brand {
    display: flex;
    flex-direction: column;
}

.egol-popup-brand-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-secondary);
    letter-spacing: 1px;
    line-height: 1;
}

.egol-popup-brand-tag {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.egol-popup-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.egol-popup-close:hover,
.egol-popup-close:active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ─── Emoji ─── */
.egol-popup-emoji-area {
    text-align: center;
    padding: 6px 20px 0;
    flex-shrink: 0;
}

.egol-popup-emoji {
    font-size: 64px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
    animation: egolPulse 2.5s ease-in-out infinite;
}

/* ─── Body ─── */
.egol-popup-body {
    flex: 1;
    padding: 16px 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.egol-popup-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.13);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 14px;
    width: fit-content;
}

.egol-popup-tag-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-secondary);
    border-radius: 50%;
    animation: egolBlink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.egol-popup-headline {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 12px;
}

.egol-popup-headline .egol-highlight {
    color: var(--brand-secondary);
}

.egol-popup-subtext {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.egol-popup-subtext strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ─── CTA Button ─── */
.egol-popup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #9d7e27 100%);
    color: var(--brand-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 15px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 4px 22px rgba(212, 175, 55, 0.32);
}

.egol-popup-cta:hover,
.egol-popup-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.48);
}

.egol-cta-arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.egol-popup-cta:hover .egol-cta-arrow {
    transform: translateX(4px);
}

/* ─── Dots ─── */
.egol-popup-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 14px 0 10px;
    flex-shrink: 0;
}

.egol-popup-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.egol-popup-dot.egol-dot-active {
    background: var(--brand-secondary);
    width: 20px;
}

/* ─── Barra de progreso ─── */
.egol-progress-area {
    padding: 0 20px 22px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.egol-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    font-family: var(--font-body);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.egol-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.egol-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9d7e27, var(--brand-secondary));
    border-radius: 2px;
    transition: width 0.1s linear;
    width: 100%;
}

/* ─── Responsive ─── */
@media (max-width: 380px) {
    .egol-popup-headline { font-size: 32px; }
    .egol-popup-emoji    { font-size: 52px; }
    .egol-img-top-wrap img { height: 160px; }
}

/* ========================================
   FIN POPUP INICIAL
   ======================================== */
/* ========================================
   PERFIL V10 — DARK GREEN TAB DESIGN
   ======================================== */
:root {
  --prf-verde:     #006B3F;
  --prf-verde-mid: #00913F;
  --prf-oro:       #D4AF37;
  --prf-oro-dark:  #bb9621;
  --prf-bg:        #f4f9f6;
  --prf-card:      #ffffff;
  --prf-card2:     #f0f7f3;
  --prf-gris:      #5a7060;
  --prf-rojo:      #E63946;
}

/* HERO */
.prf-hero {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #e0ede6;
}
.prf-hex { display: none; }
.prf-lvl-badge {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  background: linear-gradient(135deg, var(--prf-oro-dark), var(--prf-oro));
  border-radius: 12px; padding: 6px 12px; text-align: center;
}
.prf-lvl-num { font-family: 'Montserrat', sans-serif; font-size: 18px; color: #111; line-height: 1; font-weight: 900; }
.prf-lvl-lbl { font-size: 8px; font-weight: 800; color: rgba(0,0,0,.55); letter-spacing: 1px; text-transform: uppercase; }

/* Avatar 2-col layout */
.prf-identity {
  display: flex; flex-direction: row; align-items: center;
  padding: 20px 20px 16px; gap: 18px; position: relative; z-index: 2;
}
.prf-ring-wrap { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.prf-ring {
  width: 100%; height: 100%; border-radius: 50%; padding: 3px;
  background: #e0ede6;
  position: relative;
}
.prf-av-img {
  width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid #fff; object-fit: cover; display: block;
  position: relative; z-index: 2;
}
.prf-av-cam {
  position: absolute; bottom: 3px; right: 3px; width: 28px; height: 28px;
  background: var(--prf-oro); border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #111; cursor: pointer; z-index: 3;
}
.prf-info { display: flex; flex-direction: column; gap: 5px; }
.prf-name { font-family: 'Montserrat', sans-serif; font-size: 22px; color: #0D1F14; line-height: 1.1; font-weight: 800; }
.prf-alias { font-size: 13px; color: var(--prf-verde); font-weight: 600; }
.prf-since { font-size: 11px; color: #8a9a8a; display: flex; align-items: center; gap: 5px; }

/* Stats strip */
.prf-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.3);
}
.prf-si { flex: 1; text-align: center; padding: 11px 6px; position: relative; }
.prf-si:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,.07); }
.prf-si-n { font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--prf-oro); line-height: 1; font-weight: 900; }
.prf-si-l { font-size: 9px; font-weight: 800; color: var(--prf-gris); text-transform: uppercase; letter-spacing: .5px; margin-top: 1px; }

/* TAB BAR */
/* ── MENÚ HAMBURGUESA PERFIL ── */
.prf-menu-bar {
    padding: 12px 16px 0;
    position: relative;
    z-index: 10;
}
.prf-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #004D2C;
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.prf-menu-btn i:first-child {
    color: #004D2C;
    font-size: 15px;
}
.prf-menu-btn span {
    flex: 1;
    color: #0D1F14;
}
.prf-menu-arrow {
    color: #004D2C;
    font-size: 11px;
    transition: transform 0.2s;
}
.prf-menu-arrow.open {
    transform: rotate(180deg);
}
.prf-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0,0,0,0.4);
}
.prf-menu-overlay.open { display: block; }
.prf-menu-dropdown {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    overflow: hidden;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.prf-menu-dropdown.open { display: block; }
.prf-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8f0eb;
    color: #8a9a8a;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.prf-menu-item:last-child { border-bottom: none; }
.prf-menu-item:hover {
    background: #f0f7f3;
    color: var(--prf-verde);
}
.prf-menu-item.active {
    background: #f0f7f3;
    color: var(--prf-verde);
    font-weight: 700;
}
.prf-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--prf-verde);
    flex-shrink: 0;
}
.prf-menu-item.active i { color: var(--prf-verde); }
.prf-menu-item:hover i  { color: var(--prf-verde); }

.prf-tab-bar {
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 12px 12px; gap: 8px;
  position: sticky; top: 0; background: #0A1A0A; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.prf-tab-bar::-webkit-scrollbar { display: none; }
.prf-tb {
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  padding: 10px 15px; border: 2px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05); border-radius: 10px;
  cursor: pointer; flex-shrink: 0; font-family: 'Barlow', sans-serif;
  transition: all .25s ease;
}
.prf-tb.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(0,107,63,.35);
}
.prf-ticon {
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  width: auto; height: auto; background: none; border: none; border-radius: 0;
}
.prf-tb.active .prf-ticon { background: none; border-color: transparent; }
.prf-tlbl { font-size: 13px; font-weight: 700; color: #7A9A7A; white-space: nowrap; transition: color .2s; }
.prf-tb.active .prf-tlbl { color: #fff; }
.prf-tbadge {
  position: absolute; top: -6px; right: -6px;
  background: var(--prf-rojo); color: #fff; font-size: 9px; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #0A1A0A; padding: 0 3px;
}
.prf-tbadge.gold { background: var(--prf-oro-dark); }
.prf-star-anim { display: inline-block; animation: prfStarFlip 2.4s ease-in-out infinite; }
@keyframes prfStarFlip {
  0%,35%   { transform: rotateY(0deg)   scale(1);   filter: brightness(1); }
  45%      { transform: rotateY(90deg)  scale(1.2); filter: brightness(2); }
  55%      { transform: rotateY(180deg) scale(1.2); filter: brightness(2); }
  65%,100% { transform: rotateY(360deg) scale(1);   filter: brightness(1); }
}
.prf-tb.active .prf-star-anim { animation: none; filter: brightness(1.5); }

/* PANELS */
.prf-panels { padding: 16px; background: #f4f9f6; min-height: 400px; }
.prf-panel { display: none; animation: prfPanelIn .3s cubic-bezier(.4,0,.2,1) both; }
.prf-panel.on { display: block; }
@keyframes prfPanelIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* PANEL MIS GRUPOS (en perfil) */
.ppg-action-row { display: flex; gap: 10px; margin-bottom: 16px; }
.ppg-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 10px; border: none; border-radius: 10px; cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; transition: opacity .2s; }
.ppg-btn:hover { opacity: .85; }
.ppg-btn--crear { background: var(--brand-primary); color: #fff; }
.ppg-btn--unirse { background: rgba(212,175,55,.15); color: var(--prf-oro); border: 1.5px solid rgba(212,175,55,.3); }
.ppg-card { display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer;
  transition: background .2s; }
.ppg-card:hover { background: rgba(0,107,63,.12); }
.ppg-avatar { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ppg-avatar--radio { background: rgba(66,165,245,.12); }
.ppg-avatar--admin { background: rgba(212,175,55,.12); }
.ppg-avatar--member { background: rgba(0,107,63,.12); }
.ppg-info { flex: 1; min-width: 0; }
.ppg-name { font-size: 14px; font-weight: 800; color: #e8eef7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppg-meta { font-size: 11px; color: #7A9A7A; margin-top: 2px; }
.ppg-rank { text-align: right; flex-shrink: 0; }
.ppg-rank-num { font-size: 18px; font-weight: 900; color: #00E676; }
.ppg-rank-lbl { font-size: 10px; color: #7A9A7A; }
.ppg-ver-todo { display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px; background: rgba(0,107,63,.1); border: 1.5px solid rgba(0,107,63,.3);
  border-radius: 10px; color: #4ade80; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s; margin-top: 6px; }
.ppg-ver-todo:hover { background: rgba(0,107,63,.2); }
.ppg-empty { text-align: center; padding: 32px 16px; color: #7A9A7A; }
.ppg-empty-ico { font-size: 40px; margin-bottom: 10px; }
.ppg-empty-txt { font-size: 13px; line-height: 1.6; }

.prf-slbl {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  color: var(--brand-primary); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.prf-slbl::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.08); }
.prf-amini { font-size: 11px; color: #8a9a8a; text-align: center; padding: 8px 0 4px; line-height: 1.5; }
.prf-amini a { color: #60a5fa; }

/* INICIO — activity grid */
.prf-act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prf-ac {
  background: #ffffff; border-radius: 16px; padding: 14px;
  border: 1px solid #e0ede6; cursor: pointer; position: relative;
  overflow: hidden; transition: transform .15s;
  box-shadow: 0 2px 8px rgba(0,107,63,0.07);
}
.prf-ac:active { transform: scale(.97); }
.prf-ac::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 16px 16px 0 0; }
.prf-ac.v::before { background: linear-gradient(90deg, var(--prf-verde), var(--prf-verde-mid)); }
.prf-ac.o::before { background: linear-gradient(90deg, var(--prf-oro-dark), var(--prf-oro)); }
.prf-ac.a::before { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.prf-ac.r::before { background: linear-gradient(90deg, #c0392b, var(--prf-rojo)); }
.prf-ac-ico { font-size: 20px; margin-bottom: 8px; display: block; }
.prf-ac-val { font-family: 'Montserrat', sans-serif; font-size: 28px; color: var(--prf-verde); line-height: 1; font-weight: 900; }
.prf-ac-lbl { font-size: 10px; font-weight: 800; color: var(--prf-gris); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.prf-ac-sub { font-size: 11px; color: #8a9a8a; margin-top: 5px; line-height: 1.3; }
.prf-ac-arr { position: absolute; bottom: 10px; right: 12px; font-size: 12px; color: rgba(0,107,63,.3); }
.prf-ac.full { grid-column: span 2; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.prf-ostat { flex: 1; display: flex; }
.prf-os { flex: 1; text-align: center; border-left: 1px solid rgba(0,0,0,.07); padding: 0 8px; }
.prf-os:first-child { border-left: none; }
.prf-osn { font-family: 'Montserrat', sans-serif; font-size: 22px; color: var(--prf-oro-dark); line-height: 1; font-weight: 900; }
.prf-osl { font-size: 9px; font-weight: 800; color: var(--prf-gris); text-transform: uppercase; }
.prf-bact {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.28);
  border-radius: 20px; padding: 3px 8px; font-size: 10px; font-weight: 800; color: var(--prf-rojo);
  margin-top: 5px; animation: prfBp 1.5s ease-in-out infinite;
}
@keyframes prfBp { 0%,100%{box-shadow:0 0 0 0 rgba(230,57,70,.3)} 50%{box-shadow:0 0 0 4px rgba(230,57,70,0)} }
.prf-bdot { width: 5px; height: 5px; background: var(--prf-rojo); border-radius: 50%; }

/* DATOS */
.prf-aviso {
  background: #fffbea; border: 1px solid rgba(212,175,55,0.35);
  border-radius: 12px; padding: 12px 14px; font-size: 11px; color: #5a5020;
  line-height: 1.5; margin-bottom: 12px;
}
.prf-aviso strong { color: var(--prf-oro); }
.prf-aviso a { color: var(--prf-verde); font-weight: 700; }
.prf-dcard { background: #ffffff; border-radius: 20px; overflow: hidden; border: 1px solid #e0ede6; box-shadow: 0 2px 8px rgba(0,107,63,0.07); }
.prf-dhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e0ede6; }
.prf-dhtitle { font-size: 13px; font-weight: 800; color: var(--negro, #0D1F14); display: flex; align-items: center; gap: 8px; }
.prf-dhtitle i { color: var(--prf-verde-mid); }
.prf-bedit {
  background: #004D2C; border: 1px solid #004D2C;
  border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer; font-family: 'Montserrat', sans-serif; display: flex; align-items: center; gap: 5px;
}
.prf-bedit.editing { background: #fff; border-color: #004D2C; color: #004D2C; }
.prf-df { padding: 11px 16px; border-bottom: 1px solid #e8f0eb; }
.prf-dl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #5a7060; margin-bottom: 4px; }
.prf-hint { font-size: 10px; color: var(--prf-gris); margin-top: 4px; line-height: 1.4; }
.prf-drow { display: grid; grid-template-columns: 1fr 1fr; }
.prf-drow .prf-df:first-child { border-right: 1px solid #e8f0eb; }
.prf-dsep {
  padding: 8px 16px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--prf-verde);
  background: #f0f7f3; border-top: 1px solid #e0ede6; border-bottom: 1px solid #e0ede6;
  display: flex; align-items: center; gap: 6px;
}
.prf-dsep i { color: var(--prf-oro); font-size: 11px; }
.prf-dactions { padding: 12px 16px; display: none; gap: 10px; border-top: 1px solid #e0ede6; }
.prf-dactions.on, #profileActions[style*="flex"] { display: flex !important; }
.prf-bcancel {
  flex: 1; padding: 12px; background: rgba(255,255,255,.05); border: none;
  border-radius: 12px; color: var(--prf-gris); font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Barlow', sans-serif;
}
.prf-bsave {
  flex: 2; padding: 12px; background: linear-gradient(135deg, var(--prf-verde-mid), var(--prf-verde));
  border: none; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: 'Barlow', sans-serif;
  box-shadow: 0 4px 14px rgba(0,107,63,.35); display: flex; align-items: center; justify-content: center; gap: 6px;
}
/* Override old profile form inputs */
.profile-form-input-new {
  background: #f4f9f6 !important;
  border: 1.5px solid #c0dd97 !important;
  border-radius: 10px !important; padding: 8px 12px !important;
  font-family: 'Montserrat', sans-serif !important; font-size: 14px !important;
  font-weight: 600 !important; color: #0D1F14 !important; width: 100% !important;
  outline: none !important; transition: border-color .2s, box-shadow .2s !important;
  margin-top: 0 !important;
}
.profile-form-input-new:focus { border-color: var(--prf-verde-mid) !important; box-shadow: 0 0 0 3px rgba(0,145,63,.15) !important; }
.profile-form-input-new:disabled { opacity: .8 !important; cursor: default !important; background: #eef5ee !important; border-color: #ddeedd !important; color: #3a5a3a !important; }
.profile-form-input-new option { background: #fff; color: #0D1F14; }
/* Override edit button */
#btnEditProfile {
  background: #004D2C !important; border: 1px solid #004D2C !important;
  border-radius: 20px !important; padding: 5px 14px !important;
  font-size: 12px !important; font-weight: 700 !important; color: #fff !important;
  cursor: pointer !important; display: flex !important; align-items: center !important; gap: 5px !important;
}
#btnEditProfile.editing { background: #fff !important; border-color: #004D2C !important; color: #004D2C !important; }
/* Save/cancel in form */
#profileActions {
  padding: 12px 16px; gap: 10px; border-top: 1px solid #e0ede6;
}
.btn-cancel-new {
  flex: 1; padding: 12px; background: #fff; border: 1.5px solid #004D2C;
  border-radius: 12px; color: #004D2C; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
}
.btn-save-new {
  flex: 2; padding: 12px; background: linear-gradient(135deg, var(--prf-verde-mid), var(--prf-verde));
  border: none; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 14px rgba(0,107,63,.35);
}

/* OPORTUNIDADES */
.prf-oh-sum {
  display: flex; background: #0F2A0F; border-radius: 16px;
  border: 1px solid rgba(212,175,55,.2); overflow: hidden; margin-bottom: 14px;
}
.prf-ohs { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid rgba(255,255,255,.06); }
.prf-ohs:last-child { border-right: none; }
.prf-ohsn { font-family: 'Montserrat', sans-serif; font-size: 28px; color: var(--prf-oro); line-height: 1; font-weight: 700; }
.prf-ohsl { font-size: 9px; font-weight: 800; color: var(--prf-gris); text-transform: uppercase; }
.prf-oh-item { background: #0F2A0F; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.prf-oh-activa { border-color: rgba(212,175,55,.3) !important; }
.prf-oh-cat { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.prf-oh-cat.d { background: rgba(212,175,55,.15); }
.prf-oh-cat.v { background: rgba(0,107,63,.2); }
.prf-oh-ttl { font-size: 13px; font-weight: 800; color: #fff; }
.prf-oh-det { font-size: 11px; color: var(--prf-gris); margin-top: 2px; }
.prf-oh-pts { font-family: 'Montserrat', sans-serif; font-size: 22px; text-align: right; line-height: 1; font-weight: 700; }
.prf-oh-pts.g  { color: #4ade80; }
.prf-oh-pts.gr { color: rgba(255,255,255,.22); }
.prf-oh-res { font-size: 11px; font-weight: 800; text-align: right; margin-top: 2px; }
.prf-oh-res.ok { color: #4ade80; }
.prf-oh-res.no { color: rgba(255,255,255,.3); }

/* RANKING */
.prf-rank-hero {
  background: linear-gradient(135deg, #0F2A0F, #1a3d1a);
  border: 1px solid rgba(212,175,55,.25); border-radius: 20px;
  padding: 24px; text-align: center; margin-bottom: 14px;
}
.prf-rank-lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--prf-gris); margin-bottom: 6px; }
.prf-rank-num { font-family: 'Montserrat', sans-serif; font-size: 72px; color: var(--prf-oro); line-height: 1; font-weight: 700; }
.prf-rank-total { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }
.prf-rank-up {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
  border-radius: 20px; padding: 5px 14px; margin-top: 12px;
  font-size: 13px; font-weight: 800; color: #4ade80;
}
.prf-pts-card { background: #0F2A0F; border-radius: 16px; border: 1px solid rgba(255,255,255,.06); overflow: hidden; margin-bottom: 14px; }
.prf-pts-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.prf-pts-row:last-child { border-bottom: none; }
.prf-pts-row.total { background: rgba(0,0,0,.2); }
.prf-pts-label { font-size: 13px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.prf-pts-val { font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--prf-oro); font-weight: 700; }
.prf-pts-val.total { font-size: 22px; color: #fff; }
.prf-near-list { background: #0F2A0F; border-radius: 16px; border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.prf-near-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.prf-near-item:last-child { border-bottom: none; }
.prf-near-item.me { background: rgba(212,175,55,.05); }
.prf-near-pos { font-family: 'Montserrat', sans-serif; font-size: 18px; color: var(--prf-gris); width: 32px; text-align: center; font-weight: 700; }
.prf-near-pos.me { color: var(--prf-oro); }
.prf-near-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: #1a3a1a; }
.prf-near-name { flex: 1; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); }
.prf-near-name.me { color: #fff; }
.prf-near-pts { font-family: 'Montserrat', sans-serif; font-size: 16px; color: var(--prf-gris); font-weight: 700; }
.prf-near-pts.me { color: var(--prf-oro); }

/* SPONSORS */
.prf-srow {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #0F2A0F; border-radius: 16px; border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}
.prf-slogo { width: 48px; height: 48px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.prf-sname { font-size: 14px; font-weight: 800; color: #fff; }
.prf-stag  { font-size: 12px; color: var(--prf-gris); margin-top: 2px; }
.prf-spts  { font-family: 'Montserrat', sans-serif; font-size: 22px; color: var(--prf-oro); line-height: 1; font-weight: 700; }
.prf-sptsl { font-size: 10px; color: var(--prf-gris); text-align: center; }
.prf-sck   { color: #4ade80; font-size: 18px; flex-shrink: 0; }

/* PREMIOS */
.prf-prow { background: #0F2A0F; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.prf-pico { width: 44px; height: 44px; border-radius: 12px; background: rgba(212,175,55,.1); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.prf-pname { font-size: 14px; font-weight: 800; color: #fff; }
.prf-psub  { font-size: 11px; color: var(--prf-gris); margin-top: 2px; }
.prf-ptag  { border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: 800; }
.prf-ptag.rec { background: rgba(230,57,70,.14); color: var(--prf-rojo); border: 1px solid rgba(230,57,70,.3); }
.prf-ptag.pen { background: rgba(212,175,55,.1); color: var(--prf-oro); border: 1px solid rgba(212,175,55,.25); }
.prf-ptag.ok  { background: rgba(74,222,128,.1); color: #4ade80; border: 1px solid rgba(74,222,128,.25); }

/* ALERTAS */
.prf-prefs { background: #152815; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.prf-prefs-t { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--prf-gris); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.prf-pref-r { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.prf-pref-r:last-child { border-bottom: none; }
.prf-pref-l { font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.prf-tog { position: relative; width: 40px; height: 22px; }
.prf-tog input { display: none; }
.prf-trk { position: absolute; inset: 0; background: rgba(255,255,255,.1); border-radius: 11px; cursor: pointer; transition: background .2s; }
.prf-tog input:checked + .prf-trk { background: var(--prf-verde-mid); }
.prf-trk::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 9px; background: #fff; top: 2px; left: 2px; transition: transform .2s; }
.prf-tog input:checked + .prf-trk::after { transform: translateX(18px); }
.prf-acard { background: #0F2A0F; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); padding: 0 14px; }
/* Override mis-alertas list items rendered by NotifSystem */
#misAlertasList .notif-item {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
  padding: 10px 0 !important;
}
#misAlertasList .notif-item:last-child { border-bottom: none !important; }
#misAlertasList .notif-item-title { color: #fff !important; font-size: 13px !important; }
#misAlertasList .notif-item-msg   { color: rgba(255,255,255,.45) !important; font-size: 12px !important; }
#misAlertasList .notif-item-time  { color: var(--prf-gris) !important; font-size: 10px !important; }


/* ============================================================
   TG — TRIVIA MUNDIALISTA ACTUALIZADO (prefijo tg- sin conflictos)
   ============================================================ */

/* ── SESSION MAP ── */
.tg-session-map {
    background: white; border-radius: 12px; padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin: 12px 0;
    border: 1px solid var(--brand-primary);
}
.tg-session-map-title {
    font-size: 12px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.tg-session-pills-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.tg-pill {
    text-align: center; padding: 7px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
}
.tg-pill-easy     { background: #c1eac9; color: #000000; }
.tg-pill-medium   { background: #f7e394; color: #000000; }
.tg-pill-hard     { background: #f2c1c1; color: #000000; }
.tg-pill-veryhard { background: #c2b7c7; color: #000000; }
.tg-pill-insight  { background: #b5e7f4; color: #000000; }

/* ── TIP BOX ── */
.tg-tip-box {
    background: #fdf6dc; border: 1.5px solid #D4AF37;
    border-radius: 12px; padding: 14px 16px; margin: 12px 0;
    display: flex; gap: 12px; align-items: flex-start;
}
.tg-tip-box i { color: #D4AF37; font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.tg-tip-box p { font-size: 13px; color: #7a5c00; line-height: 1.5; margin: 0; }

/* ── PROGRESS BAR ── */
.tg-progress-bar {
    display: flex; gap: 5px; margin-bottom: 14px;
}
.tg-progress-dot {
    flex: 1; height: 6px; border-radius: 10px;
    background: #dde8dd; transition: all 0.3s;
}
.tg-progress-dot.tg-done    { background: var(--brand-primary); }
.tg-progress-dot.tg-current { background: #D4AF37; box-shadow: 0 0 6px rgba(212,175,55,0.5); }
.tg-progress-dot.tg-dot-insight { flex: 0.5; }
.tg-progress-dot.tg-dot-insight.tg-done    { opacity: 0.6; }
.tg-progress-dot.tg-dot-insight.tg-current { opacity: 0.85; }

/* ── DIFFICULTY BADGE MUY DIFÍCIL ── */
.difficulty-badge.muy-dificil { background: #1e293b; color: #fbbf24; }

/* ── INSIGHT SCREEN ── */
.tg-insight-card {
    background: white; border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 16px;
}
.tg-insight-header {
    background: var(--brand-primary); padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
}
.tg-insight-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 18px; flex-shrink: 0;
}
.tg-insight-label {
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 2px;
}
.tg-insight-title { font-size: 16px; font-weight: 700; color: white; }
.tg-insight-body  { padding: 20px 18px; }
.tg-insight-q     { font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.5; margin-bottom: 18px; }

.tg-insight-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tg-insight-opt {
    padding: 13px 16px; border: 2px solid #e5e7eb; background: white;
    border-radius: 12px; font-family: var(--font-body); font-size: 14px;
    font-weight: 500; color: var(--text-primary); cursor: pointer;
    text-align: left; display: flex; align-items: center; gap: 12px;
    transition: all 0.2s;
}
.tg-insight-opt:hover  { border-color: var(--brand-primary); background: #f0f9f4; }
.tg-insight-opt.selected { border-color: var(--brand-primary); background: var(--brand-primary); color: white; }
.tg-opt-letter {
    width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0; transition: all 0.2s;
}
.tg-insight-opt.selected .tg-opt-letter { background: rgba(255,255,255,0.25); color: white; }
.tg-insight-note {
    background: #e8f5ee; border-radius: 10px; padding: 10px 14px;
    font-size: 12px; color: var(--brand-dark); display: flex;
    align-items: center; gap: 8px; margin-bottom: 12px;
}

/* ── ACCUMULATED SLIDER ── */
.tg-accum-subtitle {
    text-align: center; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 10px; letter-spacing: 0.3px;
}
.tg-accum-slider {
    border-radius: 16px; overflow: hidden; margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,107,63,0.18);
}
.tg-accum-slide { display: none; flex-direction: column; align-items: center; padding: 20px 18px 10px; text-align: center; }
.tg-accum-slide.active { display: flex; }
.tg-accum-slide[data-color="green"] { background: var(--brand-primary); }
.tg-accum-slide[data-color="gold"]  { background: #b8860b; }
.tg-accum-slide[data-color="dark"]  { background: #1e293b; }
.tg-accum-tag {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.tg-accum-val-wrap { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.tg-accum-val { font-family: var(--font-display); font-size: 54px; font-weight: 700; color: white; line-height: 1; }
.tg-accum-pts { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.tg-accum-gap { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.tg-accum-slide[data-color="gold"]  .tg-accum-gap,
.tg-accum-slide[data-color="dark"]  .tg-accum-gap { color: #fbbf24; }
.tg-accum-btn {
    background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.4);
    color: white; padding: 9px 18px; border-radius: 30px;
    font-family: var(--font-body); font-size: 12px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.tg-accum-btn:hover { background: rgba(255,255,255,0.25); }
.tg-accum-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 6px; background: inherit; }
.tg-accum-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.2s; }
.tg-accum-dot.active { background: white; transform: scale(1.2); }

/* ── SPONSOR SLIDER ── */
.tg-sponsor-subtitle {
    text-align: center; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 10px; letter-spacing: 0.3px; line-height: 1.5;
}
.tg-sponsor-slider-wrap {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.tg-sponsor-arrow {
    width: 32px; height: 32px; flex-shrink: 0;
    background: white; border: 2px solid var(--brand-primary); border-radius: 50%;
    color: var(--brand-primary); font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,107,63,0.1);
}
.tg-sponsor-arrow:hover { background: var(--brand-primary); color: white; }
.tg-sponsor-slider {
    flex: 1; background: white; border-radius: 16px;
    border: 2px solid var(--brand-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden;
}
.tg-sponsor-slide { display: none; flex-direction: column; align-items: center; padding: 18px 16px 12px; }
.tg-sponsor-slide.active { display: flex; }
.tg-sponsor-tag {
    font-size: 11px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid #ddd; border-radius: 20px; padding: 4px 12px; margin-bottom: 12px;
}
.tg-sponsor-logo { font-size: 50px; margin-bottom: 8px; line-height: 1; }
.tg-sponsor-name {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: var(--brand-primary); text-align: center; margin-bottom: 10px;
}
.tg-sponsor-rank { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.tg-sponsor-rank-num  { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--brand-primary); }
.tg-sponsor-rank-of   { font-size: 13px; color: var(--text-secondary); }
.tg-sponsor-rank-total{ font-size: 20px; font-weight: 700; color: var(--text-secondary); }
.tg-sponsor-slide-btn {
    background: var(--brand-primary); color: white; border: none;
    padding: 11px 18px; border-radius: 10px; font-family: var(--font-body);
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; margin-bottom: 4px;
}
.tg-sponsor-slide-btn:hover { background: var(--brand-dark); }
.tg-sponsor-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 6px; }
.tg-sponsor-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; cursor: pointer; transition: all 0.2s; }
.tg-sponsor-dot.active { background: var(--brand-primary); transform: scale(1.2); }


/* ============================================================
   SISTEMA DE NOTIFICACIONES V9.0
   Añadido sobre estilos existentes — no modifica nada anterior
   ============================================================ */

/* --- Variables adicionales de notificaciones --- */
:root {
    --notif-critical:     #D32F2F;
    --notif-high:         #F57C00;
    --notif-medium:       #006B3F;
    --notif-low:          #9E9E9E;
    --notif-panel-width:  360px;
    --notif-panel-bg:     #ffffff;
}

/* --- Badge animado --- */
.notif-badge {
    animation: notif-badge-pulse 2.5s ease-in-out infinite;
}
.notif-badge.notif-badge--hidden {
    display: none !important;
}
@keyframes notif-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.18); }
}

/* --- Overlay oscuro --- */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.notif-overlay.notif-open {
    opacity: 1;
    visibility: visible;
}

/* --- Panel lateral --- */
.notif-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--notif-panel-width);
    max-width: 100vw;
    height: 100vh;
    background: var(--notif-panel-bg);
    z-index: 1101;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.18);
    font-family: var(--font-body, 'Poppins', sans-serif);
}
.notif-panel.notif-open {
    transform: translateX(0);
}

/* Cabecera del panel */
.notif-panel-header {
    background: var(--brand-primary, #006B3F);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.notif-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}
.notif-panel-title > i {
    color: var(--brand-accent, #D4AF37);
    font-size: 18px;
}
.notif-unread-count {
    background: #D32F2F;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    line-height: 1.6;
}
.notif-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.notif-close-btn:hover { background: rgba(255, 255, 255, 0.3); }

/* Barra de filtros */
.notif-actions-bar {
    background: #f8faf9;
    border-bottom: 1px solid #e0ebe5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}
.notif-filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.notif-filter-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    white-space: nowrap;
}
.notif-filter-btn.active {
    background: var(--brand-primary, #006B3F);
    border-color: var(--brand-primary, #006B3F);
    color: white;
    font-weight: 600;
}
.notif-mark-all-btn {
    background: none;
    border: none;
    color: var(--brand-primary, #006B3F);
    font-size: 11px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 0;
    flex-shrink: 0;
}
.notif-mark-all-btn:hover { text-decoration: underline; }

/* Lista de notificaciones */
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: #f0f4f2; }
.notif-list::-webkit-scrollbar-thumb { background: #b0cfc0; border-radius: 2px; }

/* Ítem de notificación */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    animation: notif-item-in 0.22s ease both;
}
@keyframes notif-item-in {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.notif-item:hover { background: #f6faf8; }
.notif-item.notif-unread { background: #f0f7f3; }
.notif-item.notif-unread::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
}
.notif-item.notif-unread.notif-critical::before { background: var(--notif-critical); }
.notif-item.notif-unread.notif-high::before     { background: var(--notif-high); }
.notif-item.notif-unread.notif-medium::before   { background: var(--notif-medium); }
.notif-item.notif-unread.notif-low::before      { background: var(--notif-low); }

/* Ícono del ítem */
.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}
.notif-icon.notif-critical { background: #fdecea; color: var(--notif-critical); }
.notif-icon.notif-high     { background: #fff3e0; color: var(--notif-high); }
.notif-icon.notif-medium   { background: #e8f5ee; color: var(--notif-medium); }
.notif-icon.notif-low      { background: #f5f5f5; color: var(--notif-low); }

/* Contenido del ítem */
.notif-content { flex: 1; min-width: 0; }
.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item.notif-read .notif-item-title { color: #777; font-weight: 500; }
.notif-item-msg {
    font-size: 12px;
    color: #555;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-item.notif-read .notif-item-msg { color: #aaa; }
.notif-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.notif-item-time {
    font-size: 10px;
    color: #bbb;
}
.notif-cat-tag {
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.notif-cat-tag.gaming        { background: #e8f5ee; color: #006B3F; }
.notif-cat-tag.premios       { background: #fff8e1; color: #b8860b; }
.notif-cat-tag.sponsors      { background: #e3f2fd; color: #1565c0; }
.notif-cat-tag.reactivacion  { background: #f3e5f5; color: #6a1b9a; }
.notif-cat-tag.oportunidades { background: #fdf6dc; color: #bb9621; font-weight: 700; }

/* Punto no leído */
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary, #006B3F);
    flex-shrink: 0;
    margin-top: 5px;
}
.notif-item.notif-read .notif-dot { visibility: hidden; }

/* Estado vacío */
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: #bbb;
    gap: 14px;
    text-align: center;
}
.notif-empty i { font-size: 44px; color: #d5e8df; }
.notif-empty p { font-size: 13px; line-height: 1.5; }

/* Pie del panel */
.notif-panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0ebe5;
    background: #f8faf9;
    flex-shrink: 0;
}
.notif-see-history-btn {
    width: 100%;
    background: none;
    border: 1.5px solid var(--brand-primary, #006B3F);
    color: var(--brand-primary, #006B3F);
    padding: 11px;
    border-radius: 8px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.notif-see-history-btn:hover {
    background: var(--brand-primary, #006B3F);
    color: white;
}

/* ---- MIS ALERTAS en Perfil ---- */
.mis-alertas-card {
    background: white;
    border-radius: 12px;
    margin: 0 0 16px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}
.mis-alertas-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: white;
    transition: background 0.15s;
    user-select: none;
}
.mis-alertas-toggle:hover { background: #f8faf9; }
.mis-alertas-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.mis-alertas-toggle-left > i {
    color: var(--brand-primary, #006B3F);
    font-size: 16px;
}
.mis-alertas-badge {
    background: #D32F2F;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}
.mis-alertas-chevron {
    color: #aaa;
    font-size: 13px;
    transition: transform 0.3s;
}
.mis-alertas-chevron.open { transform: rotate(180deg); }
.mis-alertas-body {
    border-top: 1px solid #f0f0f0;
}

/* Preferencias */
.notif-prefs-section {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.notif-prefs-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.notif-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
}
.notif-pref-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}
.notif-pref-label > i { width: 18px; text-align: center; }

/* Toggle switch */
.notif-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.notif-toggle input { opacity: 0; width: 0; height: 0; }
.notif-toggle-track {
    position: absolute; inset: 0;
    background: #ccc;
    border-radius: 12px;
    transition: background 0.2s;
}
.notif-toggle input:checked + .notif-toggle-track { background: var(--brand-primary, #006B3F); }
.notif-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.notif-toggle input:checked + .notif-toggle-track::after { transform: translateX(20px); }

/* Historial en perfil */
.notif-history-section { padding: 0; }
.notif-history-header-bar {
    padding: 11px 20px;
    background: #f8faf9;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.notif-mark-all-sm {
    background: none;
    border: none;
    color: var(--brand-primary, #006B3F);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body, 'Poppins', sans-serif);
    text-transform: none;
    letter-spacing: 0;
}
.notif-mark-all-sm:hover { text-decoration: underline; }
.notif-date-sep {
    text-align: center;
    font-size: 10px;
    color: #bbb;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: 0.5px;
    background: #fafafa;
    text-transform: uppercase;
}

/* Responsive panel */
@media (max-width: 400px) {
    :root { --notif-panel-width: 100vw; }
}

/* ============================================================
   FIN SISTEMA DE NOTIFICACIONES V9.0
   ============================================================ */

/* ============================================================
   SISTEMA DE OPORTUNIDADES V1.0
   ============================================================ */

/* --- FAB FLOTANTE --- */
/* ============================================================
   FAB OPORTUNIDADES — Nuevo diseño expandible v2
   ============================================================ */

/* Contenedor raíz — fixed, al lado izquierdo de la campanita */
#oportunidadFAB {
    position: fixed;
    top: 10px;
    right: 58px;   /* campanita ocupa ~42px + gap 6px = 48px desde la derecha */
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

/* ---- BOTÓN MINI (círculo con estrella) ---- */
.oport-fab-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006B3F, #004D2C);
    border: 2.5px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 16px rgba(0,107,63,0.55), 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: oportFABBounce 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}
.oport-fab-mini:active { transform: scale(0.9); }

.oport-fab-mini-star {
    font-size: 16px;
    animation: oportFABPulse 1.6s ease-in-out infinite;
    display: block;
    line-height: 1;
}

/* Variantes de color mini */
#oportunidadFAB.dorada   .oport-fab-mini { background: linear-gradient(135deg, #c9a227, #8a6b10); box-shadow: 0 4px 16px rgba(212,175,55,0.6); }
#oportunidadFAB.flash    .oport-fab-mini { background: linear-gradient(135deg, #E63946, #a01520); box-shadow: 0 4px 16px rgba(230,57,70,0.6); }
#oportunidadFAB.diamante .oport-fab-mini { background: linear-gradient(135deg, #38b2f0, #1266a8); box-shadow: 0 4px 16px rgba(56,178,240,0.6); }

/* ---- PANEL EXPANDIDO ---- */
/* ---- PANEL EXPANDIDO ---- */
.oport-fab-panel {
    position: absolute;
    top: 44px;
    right: 0;
    background: linear-gradient(160deg, #1a4d1a, #0d3320);
    border: 1.5px solid rgba(212,175,55,0.4);
    border-radius: 14px 0 14px 14px;
    padding: 14px 14px 12px 14px;
    min-width: 150px;
    max-width: 170px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    cursor: pointer;
    transform-origin: top right;
    animation: oportPanelOpen 0.28s cubic-bezier(0.34,1.4,0.64,1) both;
}















/* Variantes de color panel */
#oportunidadFAB.dorada   .oport-fab-panel { background: linear-gradient(160deg, #4d3800, #2a1e00); border-color: rgba(212,175,55,0.5); }
#oportunidadFAB.flash    .oport-fab-panel { background: linear-gradient(160deg, #4d0a10, #200408); border-color: rgba(230,57,70,0.5); }
#oportunidadFAB.diamante .oport-fab-panel { background: linear-gradient(160deg, #0a2d4d, #041420); border-color: rgba(56,178,240,0.5); }

@keyframes oportPanelOpen {
    from { transform: scale(0.4) translate(20px, -10px); opacity: 0; }
    to   { transform: scale(1)   translate(0, 0);        opacity: 1; }
}
@keyframes oportPanelClose {
    from { transform: scale(1)   translate(0, 0);        opacity: 1; }
    to   { transform: scale(0.4) translate(20px, -10px); opacity: 0; }
}
.oport-fab-panel.closing {
    animation: oportPanelClose 0.2s ease forwards;
}

.oport-fab-panel-close {
    position: absolute;
    top: 7px;
    left: 8px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: rgba(255,255,255,0.8);
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    line-height: 1;
    z-index: 2;
}
.oport-fab-panel-close:active { transform: scale(0.85); }

.oport-fab-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding-top: 6px;
}

.oport-fab-panel-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.oport-fab-panel-pts {
    font-size: 36px;
    font-weight: 900;
    color: #D4AF37;
    line-height: 1;
    letter-spacing: -1px;
}

.oport-fab-panel-sub {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.oport-fab-panel-time {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 5px;
    width: 100%;
    text-align: center;
}

/* Animaciones compartidas */
@keyframes oportFABBounce {
    from { transform: scale(0) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0);    opacity: 1; }
}
@keyframes oportFABPulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}

/* --- BADGE EN MENÚ LATERAL --- */
.nav-item-oportunidades { position: relative; }
.nav-oport-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #bb9621;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}
.nav-oport-badge.visible { display: flex; }

/* --- MENU CARD OPORTUNIDADES (home) --- */
.menu-card-oportunidades {
    position: relative;
    overflow: hidden;
}
.menu-card-oportunidades .menu-card-icon { color: #D4AF37; }
.menu-card-oport-dot {
    position: absolute;
    top: 10px; right: 10px;
    width: 10px; height: 10px;
    background: #E63946;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
    animation: oportDotPulse 1.2s ease-in-out infinite;
}
@keyframes oportDotPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(230,57,70,0); }
}
.menu-card-oport-dot.visible { display: block; }

/* --- PANTALLA OPORTUNIDADES --- */
#oportunidadesScreen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0D1F0D;
}

/* Header */
.oport-screen-header {
    display: flex;
    align-items: center;
    padding: 16px 16px 12px;
    gap: 12px;
    background: #0D1F0D;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.oport-header-back {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.oport-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    flex: 1;
}
.oport-header-title span { color: #D4AF37; }

/* Estado vacío */
.oport-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    gap: 12px;
}
.oport-empty-icon { font-size: 56px; opacity: 0.4; }
.oport-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
}
.oport-empty-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
}
.oport-next-label {
    font-size: 13px;
    color: #D4AF37;
    font-weight: 600;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 20px;
    padding: 6px 16px;
    margin-top: 8px;
}

/* Card activa */
.oport-active-card {
    margin: 16px;
    background: linear-gradient(135deg, #0F2D0F 0%, #1a3d1a 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,0.3);
}
.oport-cat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.oport-cat-bar.verde   { background: linear-gradient(90deg,#004D2C,#006B3F); color: #fff; }
.oport-cat-bar.dorada  { background: linear-gradient(90deg,#a88820,#D4AF37); color: #111; }
.oport-cat-bar.flash   { background: linear-gradient(90deg,#c0202e,#E63946); color: #fff; }
.oport-cat-bar.diamante{ background: linear-gradient(90deg,#1a8fd1,#38b2f0); color: #fff; }
.oport-cat-pts {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 20px;
}

.oport-sponsor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.oport-sponsor-row-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 16px 12px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 6px;
}
.oport-sponsor-logo-img {
    max-height: 52px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}
.oport-sponsor-tag-center {
    font-size: 11px;
    color: #8A9A8A;
    text-align: center;
}
.oport-sponsor-logo {
    width: 32px; height: 32px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.oport-sponsor-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.oport-sponsor-tag  { font-size: 11px; color: #8A9A8A; }

.oport-desafio-body { padding: 14px; }
.oport-desafio-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8A9A8A;
    text-align: center;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.oport-desafio-label::before,
.oport-desafio-label::after {
    content: ''; flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.oport-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.oport-team { text-align: center; flex: 1; }
.oport-team-emoji { font-size: 30px; margin-bottom: 4px; }
.oport-team-name  { font-size: 13px; font-weight: 700; color: #fff; }
.oport-team-sub   { font-size: 10px; color: #8A9A8A; margin-top: 1px; }
.oport-vs {
    font-size: 22px;
    font-weight: 900;
    color: #D4AF37;
    padding: 0 6px;
}

.oport-pts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.oport-pts-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8A9A8A;
    line-height: 1.3;
}
.oport-pts-val {
    font-size: 14px;
    font-weight: 800;
    color: #D4AF37;
    margin-left: auto;
}

/* Timer */
.oport-timer-block {
    margin: 0 16px 12px;
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.22);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.oport-timer-icon { font-size: 16px; animation: oportTimerPulse 1s ease-in-out infinite; }
@keyframes oportTimerPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.oport-timer-label { font-size: 11px; color: #8A9A8A; margin-bottom: 2px; }
.oport-timer-val   { font-size: 15px; font-weight: 800; color: #E63946; }
.oport-timer-countdown {
    font-size: 28px;
    font-weight: 900;
    color: #E63946;
    letter-spacing: 2px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.oport-timer-range {
    font-size: 11px;
    color: #8A9A8A;
    margin-top: 5px;
}
.oport-timer-bar-wrap {
    height: 3px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    margin-top: 3px;
    overflow: hidden;
}
.oport-timer-bar {
    height: 100%;
    background: linear-gradient(90deg,#E63946,#ff6b6b);
    border-radius: 2px;
    transition: width 1s linear;
}

/* Social proof */
.oport-social {
    margin: 0 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.oport-social strong { color: #fff; }
.oport-social-avatars { display: flex; }
.oport-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #0D1F0D;
    background: #004D2C;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    margin-right: -5px;
}

/* CTA */
.oport-cta-wrap { padding: 0 16px 24px; }
.oport-btn-cta {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00913F, #006B3F);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(0,107,63,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.3px;
}
.oport-btn-cta:active { transform: scale(0.97); }
.oport-btn-secondary {
    width: 100%;
    background: transparent;
    border: none;
    color: #8A9A8A;
    font-size: 13px;
    padding: 10px;
    cursor: pointer;
    margin-top: 4px;
}

/* ============================================================
   FIN SISTEMA DE OPORTUNIDADES V1.0
   ============================================================ */

/* ============================================================
   FLUJO DE PARTICIPACIÓN — PANTALLAS 3A, 3B, 3C
   ============================================================ */

/* Sub-pantallas dentro de oportunidadesScreen */
.oport-subscreen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    background: #0D1F0D;
    position: absolute;
    inset: 0;
    z-index: 20;
    overflow-y: auto;
    animation: osubSlideIn 0.3s cubic-bezier(0.4,0,0.2,1) both;
}
.oport-subscreen.active { display: flex; }
@keyframes osubSlideIn {
    from { transform: translateX(30px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* Barra de progreso pasos */
.opart-progress-wrap {
    padding: 14px 20px 10px;
    flex-shrink: 0;
    background: #0D1F0D;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.opart-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 7px;
}
.opart-step {
    height: 4px;
    border-radius: 2px;
    flex: 1;
    background: rgba(255,255,255,0.1);
    transition: background 0.4s;
}
.opart-step.active { background: #D4AF37; }
.opart-step.done   { background: #006B3F; }
.opart-step-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}
.opart-step-current { color: #fff; font-weight: 700; }
.opart-step-hint    { color: #8A9A8A; }

/* Back button en sub-pantallas */
.opart-back {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border: none; border-radius: 50%;
    color: #fff; font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.opart-back:hover { background: rgba(255,255,255,0.2); }

/* Timer mini en sub-pantallas */
.opart-timer-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8A9A8A;
    padding: 8px 20px 12px;
    flex-shrink: 0;
}
.opart-timer-mini .tval { color: #E63946; font-weight: 700; }

/* ---- 3A: CONDICIÓN ---- */
.opart-sponsor-card {
    margin: 12px 16px 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}
.opart-sponsor-card-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 4px;
}
.opart-sponsor-card-logo img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}
.opart-sponsor-card-tag {
    font-size: 11px;
    color: #888;
    text-align: center;
}
.opart-sponsor-msg {
    margin: 0 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    flex-shrink: 0;
}
.opart-sponsor-msg strong { color: #fff; }

/* Video container */
.opart-video-wrap {
    margin: 12px 16px 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.opart-video-bg {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a0a0a, #3d1515);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
}
.opart-video-play {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.35);
}
.opart-video-lbl { font-size: 13px; color: rgba(255,255,255,0.6); }
.opart-video-bar-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
}
.opart-video-bar {
    height: 100%;
    width: 0%;
    background: #E63946;
    transition: width 0.1s linear;
}
/* Palabra secreta sobre el video */
.opart-word-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.opart-word-overlay.visible { opacity: 1; }
.opart-secret-word {
    background: #D4AF37;
    color: #111;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    padding: 8px 20px;
    border-radius: 10px;
    animation: opartWordPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes opartWordPop {
    from { transform: scale(0.5); }
    to   { transform: scale(1); }
}

/* Code input */
.opart-code-section {
    padding: 12px 16px 0;
    flex-shrink: 0;
}
.opart-code-label {
    font-size: 12px; color: #8A9A8A;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.opart-code-field {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 14px;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.opart-code-field.filled {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.08);
    color: #D4AF37;
}
.opart-code-field.error {
    border-color: #E63946;
    color: #E63946;
    animation: opartShake 0.4s ease;
}
@keyframes opartShake {
    0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

/* Teclado simulado */
.opart-keyboard {
    padding: 10px 16px 0;
    flex-shrink: 0;
}
.opart-kb-row {
    display: flex; gap: 6px; margin-bottom: 6px; justify-content: center;
}
.opart-kb-key {
    flex: 1; max-width: 46px; height: 44px;
    background: rgba(255,255,255,0.09);
    border: none; border-radius: 9px;
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: background 0.1s;
    display: flex; align-items: center; justify-content: center;
}
.opart-kb-key:active { background: rgba(255,255,255,0.2); }
.opart-kb-key.wide   { max-width: 90px; flex: 2; font-size: 12px; font-weight: 700; }
.opart-kb-key.del    { max-width: 56px; flex: 1.5; }

/* Botón verificar */
.opart-btn-verificar {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #1a3a1a, #006B3F);
    border: 1.5px solid #006B3F;
    border-radius: 14px;
    color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; margin: 10px 0 0;
    opacity: 0.35; pointer-events: none;
    transition: opacity 0.3s, box-shadow 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.opart-btn-verificar.ready {
    opacity: 1; pointer-events: all;
    box-shadow: 0 6px 20px rgba(0,107,63,0.35);
}
.opart-btn-verificar-wrap { padding: 0 16px; flex-shrink: 0; }

/* ---- 3B: PRONÓSTICO ---- */
.opart-match-card {
    margin: 12px 16px 0;
    background: linear-gradient(135deg, #0F2D0F, #1a3d1a);
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(212,175,55,0.2);
    flex-shrink: 0;
}
.opart-match-title {
    text-align: center;
    font-size: 11px; letter-spacing: 2px;
    color: #8A9A8A; text-transform: uppercase;
    margin-bottom: 14px;
}
.opart-pron-teams {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.opart-pron-team { text-align: center; flex: 1; }
.opart-pron-emoji { font-size: 36px; margin-bottom: 5px; }
.opart-pron-name  { font-size: 13px; font-weight: 700; color: #fff; }

.opart-score-selector {
    display: flex; align-items: center;
    justify-content: center; gap: 10px;
}
.opart-score-col {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
}
.opart-score-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border: none; border-radius: 10px;
    color: #fff; font-size: 18px;
    cursor: pointer; transition: background 0.12s;
    display: flex; align-items: center; justify-content: center;
}
.opart-score-btn:active { background: rgba(255,255,255,0.18); }
.opart-score-num {
    font-size: 52px; font-weight: 900;
    color: #fff; line-height: 1;
    min-width: 52px; text-align: center;
    font-variant-numeric: tabular-nums;
}
.opart-score-dash {
    font-size: 36px; font-weight: 900;
    color: #8A9A8A; margin-top: -6px;
}

.opart-pron-preview {
    margin: 10px 16px 0;
    background: rgba(212,175,55,0.07);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.opart-pron-preview-txt { font-size: 13px; color: rgba(255,255,255,0.65); flex: 1; }
.opart-pron-preview-res { font-size: 13px; font-weight: 800; color: #D4AF37; }

.opart-pts-remind {
    margin: 10px 16px 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    flex-shrink: 0;
}
.opart-pts-remind-item {
    background: rgba(255,255,255,0.04);
    border-radius: 10px; padding: 8px 10px;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: #8A9A8A;
}
.opart-pts-remind-val { font-size: 14px; font-weight: 800; color: #D4AF37; margin-left: auto; }

.opart-btn-registrar-wrap { padding: 12px 16px 0; flex-shrink: 0; }
.opart-btn-registrar {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, #1a6b3f, #006B3F);
    border: none; border-radius: 14px;
    color: #fff; font-size: 15px; font-weight: 800;
    cursor: pointer; letter-spacing: 0.3px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(0,107,63,0.4);
    transition: transform 0.14s;
}
.opart-btn-registrar:active { transform: scale(0.97); }

/* ---- 3C: CONFIRMACIÓN ---- */
.opart-confirm-wrap {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 28px 24px; text-align: center;
    background: radial-gradient(ellipse at 50% 25%, rgba(0,107,63,0.35) 0%, #0D1F0D 70%);
}
.opart-confirm-icon {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, #00913F, #004D2C);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; margin-bottom: 14px;
    box-shadow: 0 0 0 14px rgba(0,107,63,0.12), 0 0 0 28px rgba(0,107,63,0.06);
    animation: opartConfirmPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
@keyframes opartConfirmPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.opart-confirm-title {
    font-size: 26px; font-weight: 900;
    color: #fff; margin-bottom: 4px;
    animation: opartFadeUp 0.4s ease 0.3s both;
}
.opart-confirm-sub {
    font-size: 13px; color: #8A9A8A; margin-bottom: 20px;
    animation: opartFadeUp 0.4s ease 0.4s both;
}
@keyframes opartFadeUp {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.opart-confirm-score {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 18px 20px;
    margin-bottom: 14px; width: 100%;
    animation: opartFadeUp 0.4s ease 0.5s both;
}
.opart-confirm-teams {
    display: flex; align-items: center;
    justify-content: space-between;
}
.opart-cscore-team { text-align: center; }
.opart-cscore-emoji { font-size: 28px; margin-bottom: 4px; }
.opart-cscore-name  { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.65); }
.opart-cscore-nums  { display: flex; align-items: center; gap: 6px; }
.opart-cscore-num   { font-size: 42px; font-weight: 900; color: #fff; line-height: 1; }
.opart-cscore-dash  { font-size: 28px; font-weight: 900; color: #8A9A8A; }

.opart-pts-waiting {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 30px; padding: 8px 20px;
    margin-bottom: 14px;
    animation: opartFadeUp 0.4s ease 0.6s both;
}
.opart-pts-waiting-icon { font-size: 18px; animation: opartSpin 2s linear infinite; }
@keyframes opartSpin { to { transform: rotate(360deg); } }
.opart-pts-waiting-txt { font-size: 15px; font-weight: 700; color: #D4AF37; }

.opart-confirm-match-time {
    font-size: 12px; color: #8A9A8A; margin-bottom: 18px;
    animation: opartFadeUp 0.4s ease 0.7s both;
}
.opart-confirm-match-time strong { color: #fff; }

.opart-confirm-sponsor {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; font-size: 12px; color: #8A9A8A;
    margin-bottom: 22px;
    animation: opartFadeUp 0.4s ease 0.75s both;
}
.opart-btn-siguiente {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, #a88820, #D4AF37);
    border: none; border-radius: 16px;
    color: #111; font-size: 15px; font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(212,175,55,0.3);
    margin-bottom: 6px;
    animation: opartFadeUp 0.4s ease 0.8s both;
}
.opart-btn-volver {
    background: transparent; border: none;
    color: #8A9A8A; font-size: 13px;
    padding: 10px; cursor: pointer; width: 100%;
    animation: opartFadeUp 0.4s ease 0.9s both;
}

/* ============================================================
   FIN FLUJO DE PARTICIPACIÓN
   ============================================================ */

/* ============================================================
   ESTRELLA OPORTUNIDADES — EFECTO VOLTEO 3D EN NOTIFICACIONES
   ============================================================ */

.notif-filter-oport {
    position: relative;
    white-space: nowrap;
}

/* La estrella tiene su propio contexto 3D */
.notif-oport-star {
    display: inline-block;
    animation: starFlip 2.4s ease-in-out infinite;
    transform-style: preserve-3d;
    transform-origin: center center;
}

/* Volteo en Y — como una moneda dándose vuelta */
@keyframes starFlip {
    0%   { transform: rotateY(0deg)   scale(1);    filter: brightness(1);   }
    35%  { transform: rotateY(0deg)   scale(1);    filter: brightness(1);   }
    45%  { transform: rotateY(90deg)  scale(1.1);  filter: brightness(1.8); }
    55%  { transform: rotateY(180deg) scale(1.1);  filter: brightness(1.8); }
    65%  { transform: rotateY(360deg) scale(1);    filter: brightness(1);   }
    100% { transform: rotateY(360deg) scale(1);    filter: brightness(1);   }
}

/* Cuando la pestaña está activa, la estrella brilla fija */
.notif-filter-btn.active .notif-oport-star {
    animation: starGlow 1.2s ease-in-out infinite alternate;
}
@keyframes starGlow {
    from { filter: brightness(1);   transform: scale(1); }
    to   { filter: brightness(2);   transform: scale(1.2); }
}

/* ============================================================
   FIN ESTRELLA OPORTUNIDADES
   ============================================================ */

/* Notificaciones con link — cursor pointer y flecha */
.notif-clickable { cursor: pointer; }
.notif-clickable:hover { background: #f0f7f2; }
.notif-item-goto {
    font-size: 11px;
    font-weight: 700;
    color: #006B3F;
    margin-left: auto;
}

/* ============================================================
   OPORTUNIDADES V2 — Pantalla principal renovada (on2-)
   Integración limpia: no modifica clases existentes oport-
   ============================================================ */

/* ── HERO: ESTADO SIN OPORTUNIDAD ACTIVA ── */
.on2-empty-hero {
    margin: 16px;
    background: linear-gradient(145deg, #004D2C, #006B3F);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,107,63,0.35);
}
.on2-empty-icon  { font-size: 44px; margin-bottom: 12px; }
.on2-empty-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.on2-empty-sub   { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 18px; }
.on2-next-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.2);
    border: 1px solid rgba(212,175,55,0.4);
    color: #F0C844;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ── HERO: OPORTUNIDAD ACTIVA ── */
.on2-hero-wrap { padding: 16px 16px 4px; }
.on2-hero-card {
    background: linear-gradient(145deg, #004D2C 0%, #006B3F 60%, #00874F 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,107,63,0.35);
    position: relative;
}
/* El renderCard() de OportunidadSystem pone sus clases aquí — se heredan bien */
#oportunidadesCard .oport-active-card { background: transparent; box-shadow: none; border-radius: 0; }

/* Timer dentro del hero */
.on2-timer-block  { padding: 0 16px 10px; }
.on2-timer-row    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.on2-timer-label  { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 600; }
.on2-timer-countdown {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}
.on2-timer-bar-bg {
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}
.on2-timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #F0C844);
    border-radius: 10px;
    transition: width 1s linear;
}

/* Social counter */
.on2-social {
    padding: 0 16px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.on2-social i { color: #F0C844; }

/* CTA */
.on2-cta-wrap { padding: 0 16px 12px; }
.on2-btn-participar {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #F0C844 100%);
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(212,175,55,0.45);
    text-transform: uppercase;
    transition: transform 0.15s;
}
.on2-btn-participar:active { transform: scale(0.97); }

/* Link ver anteriores */
.on2-ver-ant {
    text-align: center;
    padding: 4px 16px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    text-decoration: underline;
}

/* ── PRÓXIMAS 48 HRS ── */
.on2-proximas-section { padding: 16px 16px 4px; }
.on2-proximas-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.on2-proximas-title   {
    font-size: 12px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.on2-proximas-title i { color: #006B3F; }
.on2-proximas-count   {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    background: #fff;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.on2-proximas-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.on2-proximas-scroll::-webkit-scrollbar { display: none; }

.on2-prox-card {
    flex-shrink: 0;
    width: 158px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s;
}
.on2-prox-card:active { transform: scale(0.96); }

.on2-prox-top { padding: 10px 10px 8px; }
.on2-prox-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.on2-prox-cat.dorada   { background: rgba(212,175,55,0.15); color: #9a6f00; }
.on2-prox-cat.verde    { background: rgba(34,197,94,0.15);  color: #15803d; }
.on2-prox-cat.flash    { background: rgba(239,68,68,0.15);  color: #b91c1c; }
.on2-prox-cat.diamante { background: rgba(96,165,250,0.15); color: #1d4ed8; }

.on2-prox-sponsor-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.on2-prox-sponsor-icon {
    width: 26px; height: 26px;
    background: #f5f5f0;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.on2-prox-sponsor-name {
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.on2-prox-teaser { font-size: 11px; font-weight: 700; color: #1a1a1a; }
.on2-prox-sub    { font-size: 10px; color: #888; font-weight: 600; margin-top: 1px; }

.on2-prox-bottom {
    background: #f5f5f0;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.on2-prox-when {}
.on2-prox-day  { font-size: 10px; font-weight: 800; color: #006B3F; }
.on2-prox-time { font-size: 13px; font-weight: 900; color: #1a1a1a; }

.on2-bell {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    cursor: pointer;
    color: #aaa;
    transition: all 0.2s;
    flex-shrink: 0;
}
.on2-bell.active { background: #006B3F; border-color: #006B3F; color: #fff; }

/* ── DIVISOR ── */
.on2-section-divider {
    margin: 14px 16px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd 30%, #ddd 70%, transparent);
}

/* ── TABS NAV ── */
.on2-tabs-section { padding: 14px 16px 0; }
.on2-tabs-nav {
    display: flex;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    gap: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}
.on2-tab-btn {
    flex: 1;
    padding: 9px 4px;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.on2-tab-btn i    { font-size: 14px; }
.on2-tab-btn.active { background: #006B3F; color: #fff; box-shadow: 0 2px 8px rgba(0,107,63,0.3); }

.on2-tab-content         { display: none; padding-bottom: 30px; }
.on2-tab-content.active  { display: block; }

/* ── HISTORIAL ── */
.on2-week-group  { margin-bottom: 20px; }
.on2-week-label  {
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 0 2px;
}
.on2-hist-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.15s;
}
.on2-hist-card:active { transform: scale(0.98); }
.on2-hist-bar {
    width: 4px; height: 48px;
    border-radius: 4px; flex-shrink: 0;
}
.on2-hist-bar.dorada   { background: #D4AF37; }
.on2-hist-bar.verde    { background: #22C55E; }
.on2-hist-bar.flash    { background: #EF4444; }
.on2-hist-bar.diamante { background: #60A5FA; }

.on2-hist-icon {
    width: 36px; height: 36px;
    background: #f5f5f0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.on2-hist-info    { flex: 1; min-width: 0; }
.on2-hist-title   { font-size: 12px; font-weight: 700; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on2-hist-sub     { font-size: 11px; color: #888; margin-top: 2px; }
.on2-hist-fomo    { font-size: 10px; color: #EF4444; margin-top: 3px; font-weight: 700; }

.on2-status {
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}
.on2-status.acerte   { background: #dcfce7; color: #16a34a; }
.on2-status.no-acerte{ background: #fee2e2; color: #dc2626; }
.on2-status.pendiente{ background: #dbeafe; color: #2563eb; }
.on2-status.no-parti { background: #f3f4f6; color: #9ca3af; }

/* ── MIS PARTICIPACIONES ── */
.on2-mis-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.on2-mis-stat {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.on2-mis-num   { font-size: 22px; font-weight: 900; color: #006B3F; }
.on2-mis-num.gold { color: #D4AF37; }
.on2-mis-label {
    font-size: 9px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.on2-chips { display: flex; gap: 8px; margin-bottom: 14px; }
.on2-chip {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}
.on2-chip.active { background: #006B3F; color: #fff; border-color: #006B3F; }

.on2-parti-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.on2-parti-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.on2-parti-match { font-size: 13px; font-weight: 800; color: #1a1a1a; }
.on2-parti-date  { font-size: 11px; color: #888; margin-top: 2px; }
.on2-pts-chip {
    background: #dcfce7;
    color: #16a34a;
    font-size: 13px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.on2-pts-chip.zero { background: #f3f4f6; color: #9ca3af; }

.on2-parti-detail { display: flex; gap: 8px; }
.on2-parti-block {
    flex: 1;
    background: #f5f5f0;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}
.on2-parti-block-label {
    font-size: 9px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.on2-parti-block-val { font-size: 13px; font-weight: 900; color: #1a1a1a; margin-top: 3px; }
.on2-parti-block-val.correct { color: #16a34a; }
.on2-parti-block-val.wrong   { color: #dc2626; }

/* ── POR SPONSOR ── */
.on2-sponsors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.on2-spons-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s;
    text-align: center;
}
.on2-spons-card:active { transform: scale(0.96); }
.on2-spons-emoji { font-size: 30px; margin-bottom: 8px; line-height: 1; }
.on2-spons-name  { font-size: 11px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; line-height: 1.3; }
.on2-spons-oport { font-size: 10px; color: #888; font-weight: 600; }
.on2-spons-bar-bg {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 6px 0 2px;
}
.on2-spons-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #006B3F, #00874F);
    border-radius: 4px;
}
.on2-spons-parti { font-size: 9px; color: #006B3F; font-weight: 700; text-align: right; }

/* ============================================================
   FIN OPORTUNIDADES V2
   ============================================================ */

/* ============================================================
   MIS GRUPOS — Fase 3
   ============================================================ */

/* Botones de acción */
.mg-action-btns {
    display: flex;
    gap: 10px;
    padding: 16px;
}
.mg-btn {
    flex: 1;
    padding: 14px 10px;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.mg-btn i { font-size: 20px; }
.mg-btn--crear {
    background: linear-gradient(135deg, #006B3F, #004D2C);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,107,63,0.35);
}
.mg-btn--crear:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,107,63,0.5); }
.mg-btn--unirse {
    background: rgba(212,175,55,0.12);
    color: #D4AF37;
    border: 1px solid rgba(212,175,55,0.35);
}
.mg-btn--unirse:hover { background: rgba(212,175,55,0.2); transform: translateY(-2px); }

/* Etiquetas de sección */
.mg-section-label {
    padding: 4px 16px 10px;
    font-size: 10px;
    font-weight: 800;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Tarjeta de grupo */
.mg-card {
    margin: 0 16px 12px;
    background: #1a2535;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.mg-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.mg-card:active { transform: scale(0.98); }
.mg-card--radio { border-left: 4px solid #e74c3c; }
.mg-card--friends { border-left: 4px solid #D4AF37; }

.mg-card-inner {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Avatar */
.mg-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.mg-avatar--radio { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.mg-avatar--friends { background: linear-gradient(135deg, #004D2C, #006B3F); }

/* Info */
.mg-info { flex: 1; min-width: 0; }
.mg-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mg-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #8899aa;
}
.mg-meta span { display: flex; align-items: center; gap: 4px; }

/* Badge tipo */
.mg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}
.mg-badge--radio { background: rgba(231,76,60,0.2); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.mg-badge--friends { background: rgba(212,175,55,0.12); color: #D4AF37; border: 1px solid rgba(212,175,55,0.25); }

/* Posición del ranking */
.mg-rank { text-align: right; flex-shrink: 0; }
.mg-rank-pos {
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.mg-rank-pos--gold { color: #D4AF37; }
.mg-rank-pos--silver { color: #adb5bd; }
.mg-rank-pos--normal { color: #1a1a1a; }
.mg-rank-label { font-size: 10px; color: #8899aa; margin-top: 2px; }
.mg-rank-pts { font-size: 11px; color: #8899aa; margin-top: 1px; }

/* Barra de código */
.mg-code-bar {
    background: #f0f9f4;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.mg-code-label { font-size: 10px; color: #8899aa; }
.mg-code-value {
    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #1a1a1a;
}
.mg-code-copy {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #8899aa;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}
.mg-code-copy:hover { background: rgba(255,255,255,0.12); color: #fff; }
.mg-code-copy--copied { color: #22c55e !important; border-color: #22c55e !important; }

/* Nota informativa */
.mg-nota {
    margin: 4px 16px 16px;
    background: rgba(212,175,55,0.07);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    color: #8899aa;
    line-height: 1.5;
}
.mg-nota b { color: #D4AF37; }

/* Modal sheet */
.mg-modal-sheet {
    background: #1a2535;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 430px;
    padding: 0 0 40px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.mg-modal-sheet--open { transform: translateY(0) !important; }
.mg-modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 12px auto 0;
}
.mg-modal-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mg-modal-title {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}
.mg-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mg-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.mg-modal-label {
    font-size: 11px;
    font-weight: 700;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.mg-modal-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.mg-modal-input:focus { border-color: #006B3F; }
.mg-modal-input--code {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 20px;
    text-align: center;
}
.mg-modal-hint {
    font-size: 11px;
    color: #8899aa;
    margin-top: 8px;
    line-height: 1.5;
}
.mg-modal-hint b { color: #1a1a1a; }
.mg-modal-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 16px;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}
.mg-modal-btn--primary { background: #006B3F; color: #fff; }
.mg-modal-btn--primary:hover { background: #007a48; }
.mg-modal-btn--primary:disabled { opacity: 0.35; cursor: not-allowed; }
.mg-modal-btn--gold { background: #D4AF37; color: #004D2C; }
.mg-modal-btn--gold:hover { background: #e8c040; }

/* Código generado */
.mg-code-generated {
    background: rgba(0,107,63,0.12);
    border: 2px solid rgba(0,107,63,0.35);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin: 16px 0 0;
}
.mg-code-generated-label {
    font-size: 11px;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.mg-code-generated-value {
    font-family: monospace;
    font-size: 32px;
    font-weight: 900;
    color: #D4AF37;
    letter-spacing: 8px;
}
.mg-code-generated-sub {
    font-size: 11px;
    color: #8899aa;
    margin-top: 8px;
}

/* ============================================================
   FIN MIS GRUPOS
   ============================================================ */

/* ============================================================
   RANKING DE GRUPO — Fase 3
   ============================================================ */

/* Tabs */
.gr-tabs-wrap {
    padding: 0 16px;
    margin-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gr-tabs-wrap::-webkit-scrollbar { display: none; }
.gr-tabs {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding: 12px 0 4px;
}
.gr-tab {
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #8899aa;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.gr-tab.active {
    background: #006B3F;
    border-color: #006B3F;
    color: #fff;
}
.gr-tab:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Card mi posición */
.gr-my-pos {
    margin: 12px 16px;
    background: linear-gradient(135deg, rgba(0,107,63,0.25), rgba(0,77,44,0.25));
    border: 1px solid rgba(0,107,63,0.4);
    border-radius: 14px;
    padding: 12px 16px;
}
.gr-my-pos-label {
    font-size: 10px;
    font-weight: 800;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.gr-my-pos-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.gr-my-pos-rank {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #D4AF37;
    min-width: 60px;
}
.gr-my-pos-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.gr-my-pos-pts {
    font-size: 12px;
    color: #8899aa;
}

/* Filas de ranking */
.gr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #1a2535;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}
.gr-row.gr-row--me {
    background: rgba(0,107,63,0.2);
    border-color: rgba(0,107,63,0.4);
}
.gr-row-pos {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 900;
    min-width: 36px;
    text-align: center;
    color: #8899aa;
}
.gr-row-pos.gold  { color: #D4AF37; }
.gr-row-pos.silver { color: #adb5bd; }
.gr-row-pos.bronze { color: #cd7f32; }
.gr-row-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gr-row-name .gr-me-badge {
    font-size: 10px;
    background: rgba(0,107,63,0.4);
    color: #22c55e;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 800;
}
.gr-row-pts {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #D4AF37;
    white-space: nowrap;
}
.gr-row-pts span {
    font-size: 10px;
    font-weight: 600;
    color: #8899aa;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   FIN RANKING DE GRUPO
   ============================================================ */

/* ============================================================
   GRUPO RANKING — Selector y Meta (reemplaza tabs)
   ============================================================ */

/* Meta info: creador · fecha · miembros */
.gr-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
    font-size: 12px;
    color: #8899aa;
    font-weight: 600;
}
.gr-meta-dot { color: rgba(255,255,255,0.2); }

/* Barra selector en una línea */
.gr-selector-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 4px;
}
.gr-selector-label {
    font-size: 13px;
    font-weight: 700;
    color: #8899aa;
    white-space: nowrap;
}
.gr-selector-wrap {
    position: relative;
    flex: 1;
}
.gr-selector {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #1a2535;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 36px 10px 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.gr-selector:focus { border-color: #006B3F; }
.gr-selector option { background: #1a2535; color: #fff; }
.gr-selector-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8899aa;
    font-size: 11px;
    pointer-events: none;
}

/* ============================================================
   FIN GRUPO RANKING SELECTOR
   ============================================================ */

/* ============================================================
   GRUPO RANKING — Toolbar, Admin, Members
   ============================================================ */

.gr-meta-members {
    cursor: pointer;
    color: #D4AF37;
    font-weight: 700;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.gr-meta-members:hover { color: #e8c040; }

/* Toolbar: admin btn + selector en una fila */
.gr-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 4px;
}
.gr-admin-btn {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 10px;
    color: #D4AF37;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gr-admin-btn:hover { background: rgba(212,175,55,0.22); }

/* Selector bar flexible */
.gr-selector-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* Admin modal sections */
.gr-admin-group-info {
    background: rgba(0, 107, 63, 0.12);
    border-bottom: 1px solid rgba(0, 107, 63, 0.25);
    padding: 14px 20px 16px;
    text-align: center;
}
.gr-admin-group-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gr-admin-group-creator {
    font-size: 12px;
    color: #8899aa;
}
.gr-admin-group-creator span {
    color: #D4AF37;
    font-weight: 600;
}

/* ── Separador de secciones en checkboxes de grupo ── */
.gr-games-separator {
    border: none;
    border-top: 2px dashed rgba(0,107,63,0.3);
    margin: 14px 0;
    position: relative;
}
.gr-games-separator::after {
    content: 'OTROS TORNEOS';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #f0f9f4;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 800;
    color: #006B3F;
    letter-spacing: 1px;
    font-family: Montserrat, sans-serif;
    white-space: nowrap;
}

/* ============================================================
   PANTALLA ADMINISTRAR GRUPO (Fase 3)
   ============================================================ */
.gr-admin-hero {
    background: linear-gradient(135deg, rgba(0,107,63,0.3) 0%, rgba(0,107,63,0.1) 100%);
    border-bottom: 1px solid rgba(0,107,63,0.3);
    padding: 20px 20px 18px;
    text-align: center;
}
.gr-admin-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #006B3F;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gr-admin-hero-sub {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}
.gr-admin-hero-sub span { color: #1a1a1a; font-weight: 700; }

.gr-admin-screen-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-bottom: 40px;
}
.gr-admin-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px;
}
.gr-admin-card--danger {
    border-color: rgba(231,76,60,0.25);
    background: rgba(231,76,60,0.05);
}
.gr-admin-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.gr-admin-card-desc {
    font-size: 12px;
    color: #8899aa;
    margin-bottom: 12px;
    line-height: 1.5;
}
.gr-admin-save-btn {
    width: 100%;
    padding: 13px;
    background: #006B3F;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.gr-admin-save-btn:hover { background: #00894f; }
.gr-admin-save-btn:disabled { background: rgba(255,255,255,0.08); color: #8899aa; cursor: not-allowed; }
.gr-admin-danger-btn {
    width: 100%;
    padding: 13px;
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.gr-admin-danger-btn:hover { background: rgba(231,76,60,0.25); }

.gr-admin-section { margin-bottom: 4px; }
.gr-admin-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 16px 0;
}

/* Share code box */
.gr-share-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f9f4;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px;
}
.gr-share-code-value {
    font-family: monospace;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #1a1a1a;
}

/* Members list */
.gr-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gr-member-row:last-child { border-bottom: none; }
.gr-member-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004D2C, #006B3F);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.gr-member-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.gr-member-role {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gr-member-role--admin { background: rgba(212,175,55,0.2); color: #D4AF37; }
.gr-member-role--member { background: rgba(255,255,255,0.07); color: #8899aa; }

/* ============================================================
   FIN GRUPO RANKING TOOLBAR
   ============================================================ */

/* ============================================================
   GRUPO — Checkboxes de juegos activos
   ============================================================ */
.gr-game-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.gr-game-check:hover { background: rgba(255,255,255,0.08); }
.gr-game-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #006B3F;
    cursor: pointer;
    flex-shrink: 0;
}
.gr-game-check-emoji { font-size: 18px; }
.gr-game-check-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.gr-game-check.active { border-color: rgba(0,107,63,0.4); background: rgba(0,107,63,0.1); }
/* ============================================================ */

/* ── Admin screen: inputs y selects en negro ── */
.gr-admin-card .mg-modal-input {
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.15);
    color: #1a1a1a;
}
.gr-admin-card .mg-modal-input::placeholder { color: #aaaaaa; }
.gr-admin-card .mg-modal-input:focus { border-color: #006B3F; }
.gr-admin-card .gr-selector {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid rgba(0,0,0,0.15);
}
.gr-admin-card .mg-code-copy {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.15);
    color: #1a1a1a;
}
.gr-admin-card .mg-code-copy:hover { background: #f0f9f4; color: #006B3F; }

/* ── Badges y avatares por rol (Fase 3) ── */
.mg-avatar--admin {
    background: linear-gradient(135deg, #7A5E00, #D4AF37);
    color: #fff;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.mg-avatar--member {
    background: linear-gradient(135deg, #004D2C, #006B3F);
    color: #fff;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.mg-badge--admin {
    background: rgba(212,175,55,0.15);
    color: #B8860B;
    border: 1px solid rgba(212,175,55,0.4);
}
.mg-badge--member {
    background: rgba(0,107,63,0.12);
    color: #006B3F;
    border: 1px solid rgba(0,107,63,0.25);
}

/* ========== NOMBRE HINT INLINE ========== */
.prf-nombre-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 7px;
    background: #FFF8E7;
    border: 1px solid #F0C040;
    border-left: 4px solid #D4AF37;
    border-radius: 6px;
    padding: 9px 11px;
    font-size: 12px;
    color: #7A5700;
    line-height: 1.5;
    animation: hintSlideIn 0.25s ease;
}
.prf-nombre-hint i {
    color: #D4AF37;
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}
.prf-nombre-hint strong { color: #5a3d00; }
@keyframes hintSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== MODAL CONFIRMACIÓN NOMBRE ========== */
.nombre-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.nombre-confirm-overlay.active { display: flex; }
.nombre-confirm-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalPop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
.nombre-confirm-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF3CD, #FFE082);
    border: 2px solid #D4AF37;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.nombre-confirm-icon i { font-size: 24px; color: #D4AF37; }
.nombre-confirm-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0D1F14;
    margin: 0 0 12px;
}
.nombre-confirm-body {
    font-size: 13px;
    color: #3a4a3a;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 18px;
}
.nombre-confirm-body strong { color: #0D1F14; }
.nombre-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F4F9F6;
    border: 1.5px solid #c8e0d0;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: #2a3a2a;
    line-height: 1.5;
}
.nombre-confirm-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #006B3F;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}
.nombre-confirm-check strong { color: #006B3F; }
.nombre-confirm-actions {
    display: flex;
    gap: 10px;
}
.nombre-confirm-cancel {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #5a7060;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.nombre-confirm-save {
    flex: 2;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #005a34, #006B3F);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.nombre-confirm-save:disabled {
    background: #c8d8c8;
    color: #8aaa8a;
    cursor: not-allowed;
}
.nombre-confirm-save:not(:disabled):hover { opacity: 0.9; }

/* ========== HINT EMAIL BLOQUEADO ========== */
.prf-hint-email { display: block !important; color: #5a7060; }
.prf-hint-wa {
    display: inline;
    color: #006B3F;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 3px;
    cursor: pointer;
}
.prf-hint-wa:hover { color: #00913F; }

/* ========== ALIAS / USERNAME FIELD ========== */
.alias-label-badge {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37, #bb9621);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}
.alias-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.alias-at {
    position: absolute;
    left: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #006B3F;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}
.alias-input {
    padding-left: 30px !important;
    padding-right: 40px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.alias-status-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
}
.alias-hint {
    font-size: 11px;
    color: #7a8a7a;
    margin-top: 5px;
    line-height: 1.5;
}
.alias-hint strong { color: #3a4a3a; }

/* Estados de validación */
.alias-input.alias-ok    { border-color: #00913F !important; background: #f0fff7 !important; }
.alias-input.alias-error { border-color: #E63946 !important; background: #fff5f5 !important; }
.alias-input.alias-check { border-color: #D4AF37 !important; background: #fffdf0 !important; }

.alias-feedback {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}
.alias-feedback.show { display: flex; }
.alias-feedback.ok    { color: #006B3F; }
.alias-feedback.error { color: #E63946; }
.alias-feedback.check { color: #b89000; }

/* Alias en Mi Perfil */
.alias-perfil-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.alias-perfil-at {
    position: absolute;
    left: 11px;
    font-size: 14px;
    font-weight: 800;
    color: #006B3F;
    z-index: 1;
    pointer-events: none;
}
.alias-perfil-input { padding-left: 26px !important; font-weight: 600; }

/* ========== HINT NOMBRE EN REGISTRO ========== */
.reg-nombre-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #5a7060;
    line-height: 1.5;
}
.reg-nombre-hint i {
    color: #006B3F;
    font-size: 11px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========== AGE INFO BOX - REGISTRO ========== */
.age-info-box {
    margin-top: 8px;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    animation: hintSlideIn 0.22s ease;
}
.age-info-box.mayor {
    background: #f0fff7;
    border: 1px solid #a8e0c0;
    border-left: 4px solid #006B3F;
    color: #1a4a2a;
}
.age-info-box.menor {
    background: #FFF8E7;
    border: 1px solid #F0C040;
    border-left: 4px solid #D4AF37;
    color: #6a4a00;
}
.age-info-box i {
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}
.age-info-box.mayor i { color: #006B3F; }
.age-info-box.menor  i { color: #D4AF37; }
.age-info-box strong { color: inherit; font-weight: 800; }

/* ========== PHONE INPUT FORMATTER ========== */
.phone-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.phone-prefix {
    position: absolute;
    left: 13px;
    font-size: 14px;
    font-weight: 700;
    color: #006B3F;
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.3px;
}
.phone-input {
    padding-left: 52px !important;
    padding-right: 36px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}
.phone-feedback {
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}
.phone-feedback.show  { display: flex; }
.phone-feedback.ok    { color: #006B3F; }
.phone-feedback.error { color: #E63946; }

.phone-input.phone-ok    { border-color: #00913F !important; background: #f0fff7 !important; }
.phone-input.phone-error { border-color: #E63946 !important; background: #fff5f5 !important; }

/* ========== PHONE COUNTRY SELECTOR ========== */
.phone-country-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    border: 2px solid var(--bg-main);
    border-radius: 10px;
    overflow: visible;
    background: #fff;
    transition: border-color 0.3s;
}
.phone-country-wrap:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0,107,63,0.1);
}
.phone-country-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 13px 10px 13px 12px;
    background: #f4f9f6;
    border: none;
    border-right: 1.5px solid #dde8dd;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
    transition: background 0.2s;
    white-space: nowrap;
}
.phone-country-btn:hover { background: #e8f3ec; }
.phone-country-flag { font-size: 18px; line-height: 1; }
.phone-country-code { font-size: 13px; font-weight: 700; color: #006B3F; }
.phone-country-arrow {
    font-size: 9px;
    color: #5a7060;
    transition: transform 0.2s;
    margin-left: 1px;
}
.phone-country-arrow.open { transform: rotate(180deg); }
.phone-input-intl {
    flex: 1;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
    padding-right: 36px !important;
    font-weight: 600;
    background: transparent;
}
.phone-input-intl:focus { outline: none; box-shadow: none !important; border: none !important; }
.phone-country-wrap .alias-status-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
}

/* Dropdown */
.phone-country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #dde8dd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
    animation: hintSlideIn 0.18s ease;
}
.phone-country-dropdown.open { display: block; }
.phone-country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13.5px;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f5f0;
}
.phone-country-option:last-child { border-bottom: none; }
.phone-country-option:hover { background: #f0fff7; }
.phone-country-option.selected { background: #e8f5ee; font-weight: 700; }
.phone-country-option.divider {
    border-top: 2px solid #dde8dd;
    margin-top: 2px;
}
.pcо-flag { font-size: 20px; }
.pcо-name { flex: 1; color: #1a3a1a; }
.pcо-code { color: #006B3F; font-weight: 700; font-size: 12px; }

/* Estados del input internacional */
.phone-country-wrap.phone-ok    { border-color: #00913F !important; background: #f0fff7; }
.phone-country-wrap.phone-error { border-color: #E63946 !important; background: #fff5f5; }

/* Opción "Otro país" en el dropdown */
.phone-country-option.other-country { background: #f9f6ff; }
.phone-country-option.other-country:hover { background: #f0eaff; }
.pcо-code.other-tag {
    font-size: 10px;
    font-weight: 700;
    color: #7a5a9a;
    background: rgba(122,90,154,0.1);
    padding: 2px 7px;
    border-radius: 20px;
}
.phone-feedback.show.check { display: flex; color: #7a6500; }

/* ========== CI HINT EN PERFIL ========== */
.prf-ci-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 6px;
    background: #FFF8E7;
    border: 1px solid #F0C040;
    border-left: 4px solid #D4AF37;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    color: #7A5700;
    line-height: 1.5;
    animation: hintSlideIn 0.22s ease;
}
.prf-ci-hint i  { color: #D4AF37; font-size: 11px; margin-top: 1px; flex-shrink: 0; }
.prf-ci-hint strong { color: #5a3d00; }

/* Alias en perfil — siempre legible aunque disabled */
.alias-perfil-input:disabled {
    opacity: 1 !important;
    color: #3a5a3a !important;
    background: #eef5ee !important;
}

/* ========== ALERTA CAMPOS VACÍOS EN PERFIL ========== */
.prf-empty-alert {
    display: flex;
    gap: 12px;
    background: #FFF8E7;
    border: 1.5px solid #F0C040;
    border-left: 5px solid #D4AF37;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    animation: hintSlideIn 0.25s ease;
}
.prf-empty-alert-icon {
    font-size: 22px;
    color: #D4AF37;
    flex-shrink: 0;
    margin-top: 2px;
}
.prf-empty-alert-body {
    font-size: 13px;
    color: #5a3d00;
    line-height: 1.6;
}
.prf-empty-alert-body strong { color: #3a2800; }
.prf-empty-list {
    margin: 6px 0 10px 16px;
    padding: 0;
    font-size: 12px;
    color: #7a5500;
}
.prf-empty-list li { margin-bottom: 2px; }
.prf-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #005a34, #006B3F);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
}
.prf-empty-btn:hover { opacity: 0.9; }

/* ========== MIS JUEGOS — TABS ========== */
.mj-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8f0eb;
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mj-tabs::-webkit-scrollbar { display: none; }
.mj-tab {
    flex: 1;
    min-width: 72px;
    padding: 11px 8px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #8a9a8a;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    margin-bottom: -2px;
}
.mj-tab i { font-size: 15px; }
.mj-tab:hover { color: var(--prf-verde); }
.mj-tab.active {
    color: var(--prf-verde);
    border-bottom-color: var(--prf-verde);
    font-weight: 800;
}

/* Contenido de cada tab */
.mj-content { display: none; padding: 14px 0 0; }
.mj-content.active { display: block; }

/* Barra de resumen */
.mj-summary {
    display: flex;
    background: #f4f9f6;
    border-radius: 12px;
    padding: 12px 8px;
    margin-bottom: 14px;
    gap: 0;
}
.mj-sum-item {
    flex: 1;
    text-align: center;
    position: relative;
}
.mj-sum-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: #d0e4d8;
}
.mj-sum-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #1a3a1a;
    line-height: 1;
    margin-bottom: 3px;
}
.mj-sum-val.green { color: var(--prf-verde); }
.mj-sum-val.gold  { color: var(--prf-oro); }
.mj-sum-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #8a9a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista de partidas */
.mj-list { display: flex; flex-direction: column; gap: 8px; }

/* Estado vacío */
.mj-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    color: #8a9a8a;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}
.mj-empty i { font-size: 32px; color: #c8d8c8; }

/* Tarjeta de partida individual */
.mj-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 10px;
    padding: 11px 13px;
}
.mj-entry-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.mj-entry-icon.ok   { background: #e8f5ee; color: var(--prf-verde); }
.mj-entry-icon.mid  { background: #FFF8E7; color: var(--prf-oro); }
.mj-entry-icon.miss { background: #f5f5f5; color: #aaa; }
.mj-entry-body { flex: 1; min-width: 0; }
.mj-entry-name {
    font-size: 13px; font-weight: 700; color: #1a3a1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mj-entry-date { font-size: 10px; color: #8a9a8a; margin-top: 2px; }
.mj-entry-pts {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; font-weight: 900;
    color: var(--prf-oro);
    flex-shrink: 0;
}
.mj-entry-pts.zero { color: #ccc; }

/* ========== RANKING POR JUEGO — CARDS 2 COLUMNAS ========== */
.prk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.prk-card {
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.prk-card-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f0f7f3;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.prk-card-icon i { font-size: 15px; color: var(--prf-verde); }
.prk-card-name {
    font-size: 10px;
    font-weight: 700;
    color: #5a7060;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
}
.prk-card-pos {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--prf-oro);
    line-height: 1;
    margin-top: 4px;
}
.prk-card-pts {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #5a7060;
}

/* Botón ranking sponsors */
.prk-sponsors-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #004D2C, #006B3F);
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: opacity 0.2s;
}
.prk-sponsors-btn:hover { opacity: 0.9; }
.prk-sponsors-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.prk-sponsors-btn-left > i {
    font-size: 20px;
    color: var(--prf-oro);
    flex-shrink: 0;
}
.prk-sponsors-btn-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}
.prk-sponsors-btn-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.prk-sponsors-btn > i { color: rgba(255,255,255,0.6); font-size: 13px; }

/* Sponsor cards en perfil — clicables */
.prf-srow { transition: background 0.15s, transform 0.1s; }
.prf-srow:hover { background: #e8f5ee !important; transform: translateX(3px); }
.prf-srow:active { transform: translateX(1px); }
