/* ===================================
   QUINIELA STYLES - FIFA 2026 DESIGN
   ================================== */

:root {
    /* FIFA Colors */
    --fifa-blue: #0066CC;
    --fifa-dark-blue: #003d7a;
    --fifa-gold: #FFD700;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-card-hover: #252525;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #333333;
    --success: #00D084;
    --warning: #FFB800;
    --error: #FF4444;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    background: var(--dark-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}


.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--fifa-gold);
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-gray);
}

/* Navegación Desktop */
.nav-desktop {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.hero-hero-quiniela {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/mou.jpg') center/cover;
    background-blend-mode: overlay;
}

/* Versión responsive */
@media (max-width: 768px) {
    .hero-hero-quiniela {
        height: 400px; /* Altura reducida en móviles */
    }
}

@media (max-width: 480px) {
    .hero-hero-quiniela {
        height: 350px;
    }
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--fifa-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--fifa-gold);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.user-icon {
    font-size: 1.1rem;
}

.user-name, .user-icon {
    font-weight: 400;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--fifa-gold);
    border-radius: 8px;
    color: var(--fifa-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

.btn-logout {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Menú móvil */
.btn-menu-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
}

.menu-icon::before {
    transform: translateY(-6px);
}

.menu-icon::after {
    transform: translateY(4px);
}

.nav-mobile {
    display: none;
    background: var(--dark-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.nav-mobile-link {
    display: block;
    padding: 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--fifa-gold);
    background: rgba(255, 215, 0, 0.1);
}
/* ── WIDGET WRAPPER ───────────────────────────────── */
.logros-widget {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    border: 1px solid #eee;
}
 
.logros-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.logros-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0a0a0a;
    flex: 1;
}
.logros-counter {
    font-size: 11px;
    font-weight: 700;
    background: #FAEEDA;
    color: #633806;
    padding: 3px 10px;
    border-radius: 20px;
}
 
/* ── TRACK WRAP ───────────────────────────────────── */
.logros-track-wrap {
    position: relative;
    padding: 0 36px;
}
.logros-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; color: #555;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    line-height: 1;
}
.logros-nav:hover { background: #0066CC; color: #fff; border-color: #0066CC; }
.logros-nav.prev { left: 4px; }
.logros-nav.next { right: 4px; }
 
.logros-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 4px;
    scrollbar-width: none;
}
.logros-track::-webkit-scrollbar { display: none; }
 
/* ── ACHIEVEMENT CARD ─────────────────────────────── */
.achievement-card {
    flex: 0 0 auto;
    width: 130px;
    background: #fafafa;
    border: 1.5px solid #eee;
    border-radius: 14px;
    padding: 14px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}
 
/* Desbloqueado */
.achievement-card.unlocked {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.achievement-card.unlocked:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
 
/* Bloqueado */
.achievement-card.locked {
    opacity: .5;
    filter: grayscale(1);
}
 
/* ── RAREZA — borde coloreado ─────────────────────── */
.achievement-card.unlocked.rarity-bronce  { border-color: #CD7F32; }
.achievement-card.unlocked.rarity-plata   { border-color: #A0A0A0; }
.achievement-card.unlocked.rarity-oro     { border-color: #FFD700; box-shadow: 0 2px 16px rgba(255,215,0,.2); }
.achievement-card.unlocked.rarity-platino {
    border-color: #8AD8DB;
    box-shadow: 0 0 0 2px rgba(138,216,219,.3), 0 4px 20px rgba(138,216,219,.2);
}
 
/* Brillo animado en oro y platino */
.achievement-card.unlocked.rarity-oro::after,
.achievement-card.unlocked.rarity-platino::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer-logro 3s infinite;
    pointer-events: none;
}
@keyframes shimmer-logro {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
 
/* ── IMAGEN CIRCULAR ──────────────────────────────── */
.achievement-image-wrap {
    position: relative;
    width: 72px; height: 72px;
}
.achievement-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2.5px solid transparent;
}
.rarity-bronce  .achievement-ring { border-color: #CD7F32; }
.rarity-plata   .achievement-ring { border-color: #A0A0A0; }
.rarity-oro     .achievement-ring { border-color: #FFD700; box-shadow: 0 0 8px rgba(255,215,0,.4); }
.rarity-platino .achievement-ring {
    border-color: #8AD8DB;
    box-shadow: 0 0 10px rgba(138,216,219,.5);
    animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
 
.achievement-image {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #eee;
}
.mystery-placeholder {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #aaa; font-weight: 900;
}
 
/* Candado sobre imagen bloqueada */
.achievement-lock-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(1px);
}
 
/* ── BADGE RAREZA ─────────────────────────────────── */
.rarity-badge {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1.4;
}
.rarity-bronce  .rarity-badge { background: #CD7F32; color: #fff; }
.rarity-plata   .rarity-badge { background: #A0A0A0; color: #fff; }
.rarity-oro     .rarity-badge { background: #FFD700; color: #000; }
.rarity-platino .rarity-badge {
    background: linear-gradient(90deg,#E5E4E2,#8AD8DB);
    color: #0a0a0a;
}
 
/* ── TEXTOS ───────────────────────────────────────── */
.achievement-title {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    color: #0a0a0a;
    margin: 0;
}
.achievement-card.locked .achievement-title { color: #aaa; }
 
.rarity-bronce.unlocked  .achievement-title { color: #8B4513; }
.rarity-plata.unlocked   .achievement-title { color: #555;    }
.rarity-oro.unlocked     .achievement-title { color: #BA7517; }
.rarity-platino.unlocked .achievement-title {
    background: linear-gradient(90deg,#8AD8DB,#E5E4E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
 
.achievement-description {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mystery-text { font-style: italic; }
 
/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 480px) {
    .achievement-card { width: 110px; }
    .achievement-image, .mystery-placeholder,
    .achievement-image-wrap { width: 60px; height: 60px; }
}

/* ===================================
   MAIN CONTAINER
   ================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================================
   PAGE HEADER
   ================================== */
.page-header {
    background: linear-gradient(135deg, var(--dark-card), var(--fifa-dark-blue));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--fifa-gold);
}

.page-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ===================================
   STATS OVERVIEW
   ================================== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-card), #1f1f1f);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fifa-blue);
}

.stat-icon {
    width: 80px;        /* Tamaño fijo para el contenedor */
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;     /* Evita que se encoja */
}

.stat-icon img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;      /* Elimina espacios extras */
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fifa-gold);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Color variations */
.stat-card.predictions { border-left: 4px solid var(--fifa-blue); }
.stat-card.points { border-left: 4px solid var(--fifa-gold); }
.stat-card.position { border-left: 4px solid var(--success); }
.stat-card.accuracy { border-left: 4px solid var(--warning); }

/* ===================================
   RANKING PROGRESS
   ================================== */
.ranking-progress {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.ranking-progress h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--fifa-gold);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.current-position {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fifa-blue);
}

.position-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.position-change.up {
    color: var(--success);
}

.position-change.down {
    color: var(--error);
}

.position-change.neutral {
    color: var(--text-gray);
}

.progress-bar-container {
    background-color: #2a2a2a;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--fifa-blue), var(--fifa-gold));
    border-radius: 20px;
    transition: width 0.5s ease;
}

.next-position {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.next-position span {
    color: var(--fifa-gold);
    font-weight: 600;
}

/* ===================================
   CHARTS SECTION
   ================================== */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   PREDICTIONS HISTORY
   ================================== */
   .filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.phase-filters,
.points-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phase-filter-btn,
.points-filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.phase-filter-btn:hover,
.points-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.phase-filter-btn.active,
.points-filter-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .phase-filters,
    .points-filters {
        gap: 6px;
    }
    
    .phase-filter-btn,
    .points-filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.predictions-history {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.predictions-history h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--fifa-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: var(--dark-card-hover);
    border-color: var(--fifa-blue);
}

.filter-btn.active {
    background-color: var(--fifa-blue);
    border-color: var(--fifa-blue);
    color: var(--text-white);
}

.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prediction-item {
    background: linear-gradient(135deg, #1a1a1a, #222222);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: var(--transition);
}

.prediction-item:hover {
    border-color: var(--fifa-blue);
    box-shadow: var(--shadow-md);
}

.prediction-team {
    text-align: center;
}

.prediction-team .team-flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.prediction-team .team-name {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.prediction-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    min-width: 100px;
}

.points-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fifa-gold);
}

.points-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

.prediction-item.pending {
    opacity: 0.6;
}

.prediction-item.pending .prediction-points {
    background-color: rgba(255, 255, 255, 0.05);
}

.prediction-item.pending .points-value {
    color: var(--text-gray);
}

/* Points badges */
.prediction-item.perfect {
    border-left: 4px solid var(--success);
}

.prediction-item.good {
    border-left: 4px solid var(--fifa-blue);
}

.prediction-item.partial {
    border-left: 4px solid var(--warning);
}

.prediction-item.wrong {
    border-left: 4px solid var(--error);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===================================
   ACHIEVEMENTS
   ================================== */
.achievements-section {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.achievements-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--fifa-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.achievement-card {
    background: linear-gradient(135deg, #1a1a1a, #252525);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.achievement-card.unlocked {
    border-color: var(--fifa-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 102, 204, 0.1));
}

.achievement-card.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.achievement-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ===================================
   UPCOMING MATCHES
   ================================== */
.upcoming-section {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.upcoming-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--fifa-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    background: linear-gradient(135deg, #1a1a1a, #222222);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.match-card:hover {
    border-color: var(--fifa-blue);
    box-shadow: var(--shadow-md);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.match-team {
    flex: 1;                      /* Ambos equipos ocupan el mismo espacio */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.match-team.home {
    justify-content: flex-start;  /* Equipo local alineado a la izquierda */
}

.match-team.away {
    justify-content: flex-end;    /* Equipo visitante alineado a la derecha */
}
.match-team .flag {
    font-size: 2rem;
}

.match-team .name {
    font-weight: 600;
}

.match-vs {
    color: var(--text-gray);
    flex-shrink: 0;               /* Evita que el "VS" se encoja */
    padding: 0 1rem;
    font-weight: 700;
    color: var(--text-gray);
    text-align: center;
}
.team-flag-large {
    font-size: 2rem;
    line-height: 1;
}

.match-info {
    text-align: right;
}

.match-time {
    font-size: 0.9rem;
    color: var(--fifa-gold);
    margin-bottom: 0.25rem;
}

.match-phase {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

.match-predict-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--fifa-blue);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.match-predict-btn:hover {
    background-color: var(--fifa-dark-blue);
    transform: translateY(-2px);
}


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

   @media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-team.home,
    .match-team.away {
        justify-content: center;
        width: 100%;
    }
    
    .match-vs {
        order: 2;                 /* Para que en móvil quede entre los equipos */
        margin: 0.5rem 0;
    }
}

@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--fifa-dark-blue);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .prediction-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .prediction-team .team-flag {
        font-size: 2rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .match-info {
        text-align: center;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

 /* Estilos adicionales específicos para quiniela */
        
        /* Hero más compacto */
        .hero-quiniela {
            height: 300px;
            background: linear-gradient(135deg, var(--fifa-dark-blue), var(--fifa-blue));
        }
        
        .hero-quiniela .hero-title {
            font-size: 3rem;
        }
        
        /* Gráficos */
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        .chart-card {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
        }
        
        .chart-card h3 {
            margin-bottom: 1.5rem;
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .chart-container {
            position: relative;
            height: 300px;
        }
        
        /* Barra de progreso */
        .progress-section {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 3rem;
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .progress-position {
            font-size: 3rem;
            font-weight: 900;
            color: var(--fifa-gold);
        }
        
        .progress-change {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
        }
        
        .progress-change.up {
            background: rgba(76, 175, 80, 0.15);
            color: var(--success);
        }
        
        .progress-change.down {
            background: rgba(244, 67, 54, 0.15);
            color: var(--error);
        }
        
        .progress-change.neutral {
            background: rgba(160, 160, 160, 0.15);
            color: var(--text-gray);
        }
        
        .progress-bar-wrapper {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            height: 20px;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--fifa-blue), var(--fifa-gold));
            border-radius: 10px;
            transition: width 0.5s ease;
        }
        
        .progress-info-text {
            color: var(--text-gray);
            font-size: 0.95rem;
        }
        
        /* Historial de predicciones */
        .history-filters {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 0.75rem 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-gray);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-white);
        }
        
        .filter-btn.active {
            background: var(--fifa-blue);
            border-color: var(--fifa-blue);
            color: var(--text-white);
        }
        
        .predictions-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .prediction-item {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 1.5rem;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .prediction-item:hover {
            border-color: var(--fifa-gold);
            transform: translateX(5px);
        }
        
        .prediction-date {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            min-width: 80px;
        }
        
        .prediction-day {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--fifa-gold);
        }
        
        .prediction-month {
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .prediction-match {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .prediction-team {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
        }
        
        .prediction-score {
            display: flex;
            gap: 1rem;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .score-separator {
            color: var(--text-gray);
        }
        
        .prediction-result {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            min-width: 100px;
        }
        
        .result-badge {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .result-badge.exacto {
            background: rgba(76, 175, 80, 0.2);
            color: var(--success);
        }
        
        .result-badge.parcial {
            background: rgba(255, 215, 0, 0.2);
            color: var(--fifa-gold);
        }
        
        .result-badge.fallado {
            background: rgba(244, 67, 54, 0.2);
            color: var(--error);
        }
        
        .result-badge.pendiente {
            background: rgba(160, 160, 160, 0.2);
            color: var(--text-gray);
        }
        
        .result-points {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--fifa-gold);
        }
        
        
        /* Próximos partidos */
        .match-card {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }
        
        .match-card:hover {
            border-color: var(--fifa-blue);
            transform: translateY(-2px);
        }
        
        .match-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .match-date {
            color: var(--text-gray);
            font-size: 0.9rem;
        }
        
        .match-phase {
            padding: 0.25rem 0.75rem;
            background: rgba(0, 102, 204, 0.2);
            border-radius: 15px;
            font-size: 0.85rem;
            color: var(--fifa-blue);
            font-weight: 600;
        }
        
        .match-teams {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
        }
        
        .match-team {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
        }
        
        .match-team.away {
            flex-direction: row-reverse;
        }
        
        .team-flag-large {
            font-size: 2rem;
        }
        
        .match-vs {
            font-weight: 700;
            color: var(--text-gray);
            font-size: 1.1rem;
        }
        
        .match-action {
            margin-top: 1rem;
            text-align: center;
        }
        
        .btn-predict {
            padding: 0.75rem 2rem;
            background: var(--fifa-gold);
            border: none;
            border-radius: 8px;
            color: #000;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .btn-predict:hover {
            background: #ffd000;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .charts-grid {
                grid-template-columns: 1fr;
            }
            
            .prediction-item {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .prediction-date {
                flex-direction: row;
                justify-content: center;
                gap: 0.5rem;
            }
            
            .prediction-match {
                flex-direction: column;
            }
            
            .match-teams {
                flex-direction: column;
                gap: 1rem;
            }
            
            .match-team.away {
                flex-direction: row;
            }
        }
/* Dos columnas para secciones de partidos */
.two-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.two-columns-grid .section-card {
    margin-bottom: 0; /* Elimina el margen inferior que podía causar desajuste */
}

/* Responsive: en móviles una sola columna */
@media (max-width: 768px) {
    .two-columns-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* ===================================
   ANIMATIONS
   ================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Stagger animation for list items */
.prediction-item,
.achievement-card,
.match-card {
    animation: fadeIn 0.5s ease forwards;
}

.prediction-item:nth-child(1) { animation-delay: 0.1s; }
.prediction-item:nth-child(2) { animation-delay: 0.2s; }
.prediction-item:nth-child(3) { animation-delay: 0.3s; }
.prediction-item:nth-child(4) { animation-delay: 0.4s; }
.prediction-item:nth-child(5) { animation-delay: 0.5s; }

/* ===============================================
   ESTILOS MEJORADOS PARA TARJETAS DE PREDICCIONES
   Agregar al final de quiniela-styles.css o dentro de <style> en quiniela.html
   =============================================== */

.prediction-item {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.prediction-item:hover {
    border-color: var(--fifa-gold);
    transform: translateX(3px);
}

/* Equipos */
.prediction-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prediction-team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.team-flag {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.team-visit {
    flex-direction: row-reverse;
    text-align: right;
}

/* Marcadores */
.prediction-scores {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    min-width: 180px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    min-width: 80px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-number {
    font-size: 1.8rem;
    font-weight: 900;
    min-width: 35px;
    text-align: center;
}

.score-separator {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 700;
}

.prediction-score .score-number {
    color: var(--fifa-gold);
}

.real-score .score-number {
    color: var(--text-white);
}

/* Puntos con desglose */
.prediction-points {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    text-align: center;
}

.points-total {
    font-size: 3rem;
    font-weight: 900;
    color: var(--fifa-gold);
    margin-bottom: 0.25rem;
}

.points-label {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.points-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.breakdown-item.highlight {
    color: var(--success);
    font-weight: 600;
}

.breakdown-desc {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-icon {
    font-size: 1rem;
}

.breakdown-value {
    font-weight: 700;
    color: var(--fifa-gold);
}

/* Estado pendiente */
.prediction-item.pending {
    opacity: 0.7;
}

.prediction-item.pending .prediction-points {
    background: rgba(160, 160, 160, 0.1);
}

.prediction-item.pending .points-total {
    color: var(--text-gray);
}

/* Estados según puntos */
.prediction-item.exacto {
    border-left: 4px solid var(--success);
}

.prediction-item.parcial {
    border-left: 4px solid var(--fifa-gold);
}

.prediction-item.fallado {
    border-left: 4px solid var(--error);
}

.prediction-item.exacto .points-total {
    color: var(--success);
}

.prediction-item.fallado .points-total {
    color: var(--error);
}

/* Badge de estado */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-badge.exacto {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-badge.parcial {
    background: rgba(255, 215, 0, 0.2);
    color: var(--fifa-gold);
}

.status-badge.fallado {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.status-badge.pendiente {
    background: rgba(160, 160, 160, 0.2);
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .prediction-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .prediction-team,
    .prediction-team.away {
        flex-direction: column;
        text-align: center;
    }
    
    .prediction-scores {
        order: 2;
    }
    
    .prediction-points {
        order: 3;
    }
}   

/* ── HERO ─────────────────────────────────────────── */
    .qui-hero { background:#000; position:relative; overflow:hidden; border-bottom:3px solid var(--fifa-gold,#FFD700); }
    .qui-hero::before {
        content:''; position:absolute; inset:0;
        background:
            repeating-linear-gradient(90deg,rgba(255,255,255,.015) 0,rgba(255,255,255,.015) 1px,transparent 1px,transparent 60px),
            repeating-linear-gradient(0deg,rgba(255,255,255,.015) 0,rgba(255,255,255,.015) 1px,transparent 1px,transparent 60px);
        pointer-events:none;
    }
    .qui-hero-inner { max-width:1280px; margin:0 auto; padding:48px 24px 40px; position:relative; z-index:2; display:grid; grid-template-columns:1fr auto; align-items:center; gap:32px; }
    .qui-eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
    .qui-eyebrow-line { width:32px; height:2px; background:var(--fifa-gold,#FFD700); }
    .qui-eyebrow span { font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--fifa-gold,#FFD700); }
    .qui-title { font-size:clamp(36px,5vw,72px); font-weight:900; color:#fff; line-height:1; letter-spacing:-2px; text-transform:uppercase; margin-bottom:14px; }
    .qui-title em { font-style:normal; color:var(--fifa-gold,#FFD700); }
    .qui-sub { font-size:14px; color:rgba(255,255,255,.5); line-height:1.6; max-width:460px; }

    /* Stats en el hero */
    .qui-hero-stats { display:flex; gap:0; margin-top:28px; border:1px solid rgba(255,255,255,.1); border-radius:10px; overflow:hidden; width:fit-content; }
    .qui-hero-stat { padding:14px 22px; border-right:1px solid rgba(255,255,255,.1); text-align:center; }
    .qui-hero-stat:last-child { border-right:none; }
    .qui-hero-stat-val { font-size:24px; font-weight:900; color:#fff; line-height:1; display:block; }
    .qui-hero-stat-val.gold { color:var(--fifa-gold,#FFD700); }
    .qui-hero-stat-val.green { color:#22c55e; }
    .qui-hero-stat-lbl { font-size:10px; color:rgba(255,255,255,.4); font-weight:700; letter-spacing:.8px; text-transform:uppercase; display:block; margin-top:4px; }
    .qui-hero-deco { font-size:110px; opacity:.05; line-height:1; user-select:none; flex-shrink:0; }

    @media(max-width:700px){ .qui-hero-inner{grid-template-columns:1fr;padding:32px 16px 28px;} .qui-hero-deco{display:none;} .qui-hero-stats{flex-wrap:wrap;} }

    /* ── GRID ─────────────────────────────────────────── */
    .qui-grid-bg { background:#f4f4f4; }
    .qui-grid { max-width:1280px; margin:0 auto; padding:28px 16px 48px; display:grid; grid-template-columns:240px 1fr 240px; grid-template-areas:"izquierda centro derecha"; gap:24px; align-items:start; }
    .qui-col-left  { grid-area:izquierda; display:flex; flex-direction:column; gap:16px; position:sticky; top:110px; }
    .qui-col-main  { grid-area:centro;    display:flex; flex-direction:column; gap:16px; min-width:0; }
    .qui-col-right { grid-area:derecha;   display:flex; flex-direction:column; gap:16px; position:sticky; top:110px; }

    /* ── WIDGET BASE ──────────────────────────────────── */
    .widget { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.07); border:1px solid #eee; }
    .widget-header { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid #f0f0f0; }
    .widget-bar    { width:3px; height:14px; background:var(--fifa-gold,#FFD700); border-radius:0; flex-shrink:0; }
    .widget-title  { font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#0a0a0a; flex:1; margin:0; }
    .widget-link   { font-size:11px; color:#0066CC; text-decoration:none; font-weight:600; }
    .widget-badge  { font-size:11px; font-weight:700; background:#f5f5f5; color:#555; padding:2px 8px; border-radius:20px; }
    .widget-body   { padding:14px 16px; }

    /* ── GRÁFICOS ─────────────────────────────────────── */
    .charts-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
    .chart-widget { background:#fff; border-radius:14px; border:1px solid #eee; box-shadow:0 2px 8px rgba(0,0,0,.07); overflow:hidden; }
    .chart-widget-header { padding:12px 16px; border-bottom:1px solid #f0f0f0; display:flex; align-items:center; gap:8px; }
    .chart-widget-title { font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#0a0a0a; }
    .chart-container { padding:16px; }
    .chart-container canvas { max-height:180px; }
    @media(max-width:600px){ .charts-row{grid-template-columns:1fr;} }

    /* ── FILTROS DE HISTORIAL ─────────────────────────── */
    .qui-filter-section { background:#fff; border-radius:14px; border:1px solid #eee; box-shadow:0 2px 8px rgba(0,0,0,.07); overflow:hidden; }
    .qui-filter-header  { padding:12px 16px; border-bottom:1px solid #f0f0f0; display:flex; align-items:center; gap:8px; }
    .qui-filter-title   { font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#0a0a0a; flex:1; }
    .qui-filter-body    { padding:12px 16px; display:flex; flex-wrap:wrap; gap:6px; }

    .qfbtn { padding:6px 12px; background:#f5f5f5; border:1px solid #e8e8e8; border-radius:20px; font-size:11px; font-weight:700; color:#555; cursor:pointer; transition:all .15s; white-space:nowrap; }
    .qfbtn:hover  { border-color:#0066CC; color:#0066CC; background:#EBF3FF; }
    .qfbtn.active { background:#0066CC; color:#fff; border-color:#0066CC; }

    .qfbtn-fase { padding:5px 10px; background:#f5f5f5; border:1px solid #e8e8e8; border-radius:6px; font-size:10px; font-weight:700; color:#555; cursor:pointer; transition:all .15s; }
    .qfbtn-fase:hover  { border-color:#0066CC; color:#0066CC; }
    .qfbtn-fase.active { background:#0a0a0a; color:#fff; border-color:#0a0a0a; }

    /* ── PREDICTION CARDS (mismo diseño que predicciones.html) */
    .prediction-item {
        background:#fff;
        border-radius:12px;
        border:1px solid #e8e8e8;
        box-shadow:0 1px 4px rgba(0,0,0,.06);
        overflow:hidden;
        margin-bottom:10px;
        display:flex;
        flex-direction:column;
        transition:box-shadow .2s;
    }
    .prediction-item:hover { box-shadow:0 4px 16px rgba(0,0,0,.1); }
    .prediction-item.exacto  { border-left:3px solid #22c55e; }
    .prediction-item.parcial { border-left:3px solid #FFD700; }
    .prediction-item.fallado { border-left:3px solid #ef4444; }
    .prediction-item.pendiente { border-left:3px solid #aaa; }

    .pi-header { display:flex; justify-content:space-between; align-items:flex-start; padding:10px 14px 8px; border-bottom:1px solid #f0f0f0; }
    .pi-competition { font-size:12px; font-weight:700; color:#1a1a1a; }
    .pi-subtitle    { font-size:11px; color:#0066CC; margin-top:2px; }
    .pi-date        { font-size:11px; color:#999; font-weight:600; white-space:nowrap; margin-left:8px; flex-shrink:0; }

    .pi-body { display:flex; align-items:center; gap:12px; padding:12px 14px 10px; flex:1; }
    .pi-teams { display:flex; flex-direction:column; gap:10px; flex:1; min-width:0; }
    .pi-team-row { display:flex; align-items:center; gap:8px; }
    .pi-flag { font-size:20px; line-height:1; flex-shrink:0; }
    .pi-name { font-size:11px; font-weight:800; color:#1a1a1a; letter-spacing:.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

    .pi-scores { display:flex; align-items:center; gap:10px; flex-shrink:0; }
    .pi-score-col { display:flex; flex-direction:column; align-items:center; gap:5px; min-width:50px; }
    .pi-score-label { font-size:9px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; white-space:nowrap; }
    .pi-score-col.pred .pi-score-label { color:#0066CC; }
    .pi-score-col.real .pi-score-label { color:#16a34a; }

    .pi-score-stack { display:flex; flex-direction:column; align-items:center; }
    .pi-score-num { font-size:22px; font-weight:900; line-height:1.2; min-width:24px; text-align:center; }
    .pi-score-num.pred { color:#0066CC; }
    .pi-score-num.real { color:#16a34a; }
    .pi-score-line { width:24px; height:2px; background:#e0e0e0; margin:2px 0; }
    .pi-score-line.real { background:#bbf7d0; }
    .pi-score-pending { font-size:10px; color:#bbb; font-weight:600; white-space:nowrap; padding-top:6px; }
    .pi-score-divider { width:1px; height:50px; background:#f0f0f0; flex-shrink:0; }

    .pi-footer { display:flex; align-items:center; justify-content:space-between; padding:8px 14px 10px; border-top:1px solid #f5f5f5; background:#fafafa; }
    .pi-status { font-size:11px; font-weight:700; }
    .pi-status.pendiente  { color:#BA7517; }
    .pi-status.finalizado { color:#16a34a; }

    .pi-pts-badge { display:inline-block; font-size:12px; font-weight:900; padding:3px 10px; border-radius:20px; letter-spacing:.3px; }
    .pi-pts-badge.pts-9 { background:#D1F2EB; color:#085041; }
    .pi-pts-badge.pts-7 { background:#EAF3DE; color:#27500A; }
    .pi-pts-badge.pts-5 { background:#FAEEDA; color:#633806; }
    .pi-pts-badge.pts-2 { background:#EBF3FF; color:#0C447C; }
    .pi-pts-badge.pts-0 { background:#f5f5f5; color:#888; }

    /* ── PARTIDOS SIN PREDICCIÓN ──────────────────────── */
    .upcoming-card { background:#fff; border-radius:12px; border:1px solid #e8e8e8; margin-bottom:10px; overflow:hidden; }
    .uc-header { display:flex; justify-content:space-between; align-items:center; padding:10px 14px 8px; border-bottom:1px solid #f0f0f0; }
    .uc-fase { font-size:11px; font-weight:700; color:#0066CC; }
    .uc-fecha { font-size:11px; color:#aaa; font-weight:600; }
    .uc-body { display:flex; align-items:center; justify-content:space-between; padding:12px 14px 10px; gap:8px; }
    .uc-teams { display:flex; flex-direction:column; gap:8px; flex:1; min-width:0; }
    .uc-team-row { display:flex; align-items:center; gap:8px; }
    .uc-flag { font-size:20px; line-height:1; flex-shrink:0; }
    .uc-name { font-size:12px; font-weight:800; color:#1a1a1a; letter-spacing:.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .uc-hora { font-size:22px; font-weight:900; color:#1a1a1a; letter-spacing:-1px; line-height:1; flex-shrink:0; }
    .uc-btn { display:block; margin:0 14px 12px; padding:9px; background:#0066CC; color:#fff; font-size:12px; font-weight:800; border-radius:8px; text-decoration:none; text-align:center; transition:background .2s; }
    .uc-btn:hover { background:#0052a3; }

    /* ── WIDGET STAT ROWS ─────────────────────────────── */
    .stat-row { display:flex; justify-content:space-between; align-items:center; padding:7px 0; border-bottom:1px solid #f5f5f5; }
    .stat-row:last-child { border-bottom:none; }
    .stat-label-w { font-size:12px; color:#555; }
    .stat-val-w   { font-size:13px; font-weight:800; color:#0a0a0a; }
    .stat-val-w.gold  { color:#BA7517; }
    .stat-val-w.blue  { color:#0066CC; }
    .stat-val-w.green { color:#16a34a; }

    /* CTA */
    .widget-cta-dark { background:#0a0a0a !important; border-color:#222 !important; }
    .widget-cta-dark .widget-header { border-bottom-color:#222; }
    .widget-cta-dark .widget-title  { color:#fff; }
    .cta-text { font-size:13px; color:rgba(255,255,255,.55); line-height:1.5; margin-bottom:14px; }
    .cta-btn  { display:block; text-align:center; padding:11px; background:var(--fifa-gold,#FFD700); color:#000; font-size:13px; font-weight:800; border-radius:8px; text-decoration:none; transition:background .2s; }
    .cta-btn:hover { background:#e6c200; }

    /* ── CAMPEÓN ELEGIDO ──────────────────────────────── */
    .campeon-box { text-align:center; padding:16px; }
    .campeon-flag { font-size:52px; line-height:1; margin-bottom:8px; display:block; }
    .campeon-name { font-size:14px; font-weight:800; color:#0a0a0a; }
    .campeon-sub  { font-size:11px; color:#aaa; margin-top:3px; }

    /* Empty / loading */
    .qui-empty { text-align:center; padding:32px 16px; font-size:12px; color:#aaa; background:#fff; border-radius:14px; border:1px solid #eee; }
    .qui-empty i { font-size:32px; display:block; margin-bottom:8px; color:#ddd; }
    .qui-loading { text-align:center; padding:24px; font-size:12px; color:#aaa; }

    /* ── RESPONSIVE ───────────────────────────────────── */
    @media(max-width:1024px){
        .qui-grid { grid-template-columns:1fr 220px; grid-template-areas:"centro derecha" "izquierda izquierda"; }
        .qui-col-left { position:static; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
    }
    @media(max-width:700px){
        .qui-grid { grid-template-columns:1fr; grid-template-areas:"centro" "derecha" "izquierda"; padding:16px 12px 40px; }
        .qui-col-left,.qui-col-right { position:static; }
        .charts-row { grid-template-columns:1fr; }
    }