/* --- ESTILOS PARA FUNCIONES BETA --- */

/* --- TROPHIES --- */
.trophies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.trophy-card {
    background: #ECDFCB;
    /* Fondo crema de la paleta */
    padding: 20px 15px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid #EAAD62;
    /* Borde ámbar/oro */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.trophy-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.trophy-card.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.trophy-card.unlocked {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 125, 55, 0.2);
}

.trophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 15px rgba(234, 173, 98, 0.3);
    border: 4px solid #EAAD62;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ECDFCB);
}

.trophy-name {
    font-weight: 900;
    font-size: 0.9rem;
    color: #E57D37;
    /* Naranja fuerte de la paleta */
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trophy-desc {
    font-size: 0.75rem;
    color: #5b757e;
    /* Versión oscurecida del azul #94BAC4 */
    line-height: 1.3;
    font-weight: 600;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* --- RANKING MEJORADO --- */
.ranking-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.ranking-header-icon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.ranking-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.ranking-item.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-color: #FFD700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.ranking-item.rank-2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #C0C0C0;
    box-shadow: 0 10px 25px rgba(192, 192, 192, 0.2);
}

.ranking-item.rank-3 {
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
    border-color: #CD7F32;
    box-shadow: 0 10px 25px rgba(205, 127, 50, 0.2);
}

.ranking-item.is-me {
    background: linear-gradient(135deg, var(--celeste) 0%, rgba(255, 255, 255, 1) 100%);
    border: 3px solid var(--azul-mar);
    transform: scale(1.03);
    z-index: 10;
}

.ranking-item.is-me::after {
    content: 'TÚ';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--azul-mar);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.ranking-badge {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gris-oscuro);
    background: #f1f5f9;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rank-1 .ranking-badge {
    background: #FFD700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.8rem;
}

.rank-2 .ranking-badge {
    background: #C0C0C0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.6rem;
}

.rank-3 .ranking-badge {
    background: #CD7F32;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.4rem;
}

.ranking-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ranking-name {
    font-weight: 900;
    color: var(--azul-mar);
    font-size: 1.1rem;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.ranking-country {
    font-size: 0.75rem;
    color: var(--gris-oscuro);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ranking-score {
    font-weight: 900;
    color: var(--oro);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fffbef;
    padding: 6px 12px;
    border-radius: 15px;
    border: 2px solid var(--oro);
    box-shadow: 0 4px 10px rgba(234, 173, 98, 0.15);
}

@keyframes moverNubes {
    from {
        transform: translateX(-10px);
    }

    to {
        transform: translateX(10px);
    }
}