/* ==================== SECCIÓN PERFIL ==================== */
.profile-header-top {
    margin-top: 40px;
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #ef4444, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.profile-container-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* TARJETA DE PERFIL */
.profile-card {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9), rgba(30, 58, 138, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0;
    border: 2px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-banner {
    height: 150px;
    background: linear-gradient(135deg, #3b82f6, #ef4444, #a855f7);
    position: relative;
}

.profile-info-box {
    padding: 0 2rem 1.5rem;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.profile-avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(10, 14, 39, 0.9);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    flex-shrink: 0;
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3b82f6;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.avatar-edit:hover {
    transform: scale(1.1);
    background: #60a5fa;
}

.profile-data h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.profile-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    color: #fff;
}

.level-icon {
    font-size: 1.3rem;
}

/* XP CONTAINER */
.xp-container {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.xp-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.xp-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #ef4444, #a855f7);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.xp-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

/* SECCIONES */
.section-subtitle {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-section,
.game-stats-section,
.achievements-section {
    margin-bottom: 2.5rem;
}

/* STATS GRID */
.stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card-profile {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.stat-card-profile:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.stat-icon-big {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

.stat-number-big {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label-big {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* GAME STATS */
.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-stat-card {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.game-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.game-stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.game-stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

.game-stat-header h4 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.game-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.game-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.game-stat-value {
    color: #22d3ee;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ACHIEVEMENTS */
.achievements-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* RESPONSIVE PERFIL */
@media (max-width: 768px) {
    .profile-title {
        font-size: 2rem;
    }

    .profile-subtitle {
        font-size: 1rem;
    }

    .profile-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem 1.5rem;
    }

    .profile-avatar-big {
        width: 100px;
        height: 100px;
    }

    .profile-data h2 {
        font-size: 1.5rem;
    }

    .xp-container {
        padding: 1rem 1.5rem;
    }

    .stats-grid-profile {
        grid-template-columns: 1fr;
    }

    .game-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .stat-icon-big {
        font-size: 2.5rem;
    }

    .stat-number-big {
        font-size: 2rem;
    }

    .stat-label-big {
        font-size: 0.85rem;
    }

    .game-stat-icon {
        font-size: 2rem;
    }
}